TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Scheduler\TaskExecutor Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Scheduler\TaskExecutor:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Scheduler_TaskExecutor

Public Member Functions

 initializeObject ()
 
 execute (\TYPO3\CMS\Extbase\Scheduler\Task $task)
 

Protected Member Functions

 initialize (array $configuration)
 
 shutdown ()
 

Protected Attributes

 $request
 
 $response
 
 $dispatcher
 
 $objectManager
 
 $commandManager
 
 $configurationManager
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Task Executor

Takes a and executes the CommandController command defined therein.

Definition at line 22 of file TaskExecutor.php.

Member Function Documentation

◆ execute()

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::execute ( \TYPO3\CMS\Extbase\Scheduler\Task  $task)

Execute Task

If errors occur during Task execution they are thrown as Exceptions which must be caught manually if you manually execute Tasks through your code.

Parameters
\TYPO3\CMS\Extbase\Scheduler\Task$taskthe task to execute
Returns
void

Definition at line 105 of file TaskExecutor.php.

References TYPO3\CMS\Extbase\Scheduler\TaskExecutor\initialize(), TYPO3\CMS\Extbase\Scheduler\TaskExecutor\shutdown(), and TYPO3\CMS\Core\Utility\GeneralUtility\underscoredToUpperCamelCase().

◆ initialize()

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::initialize ( array  $configuration)
protected

Initializes configuration manager, object container and reflection service

Parameters
array$configuration
Returns
void

Definition at line 70 of file TaskExecutor.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Extbase\Scheduler\TaskExecutor\execute().

◆ initializeObject()

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::initializeObject ( )

Initialize Dispatcher

Definition at line 60 of file TaskExecutor.php.

◆ shutdown()

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::shutdown ( )
protected

Resets framework singletons

Returns
void

Definition at line 124 of file TaskExecutor.php.

Referenced by TYPO3\CMS\Extbase\Scheduler\TaskExecutor\execute().

Member Data Documentation

◆ $commandManager

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$commandManager
protected

Definition at line 49 of file TaskExecutor.php.

◆ $configurationManager

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$configurationManager
protected

Definition at line 55 of file TaskExecutor.php.

◆ $dispatcher

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$dispatcher
protected

Definition at line 37 of file TaskExecutor.php.

◆ $objectManager

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$objectManager
protected

Definition at line 43 of file TaskExecutor.php.

◆ $request

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$request
protected

Definition at line 27 of file TaskExecutor.php.

◆ $response

TYPO3\CMS\Extbase\Scheduler\TaskExecutor::$response
protected

Definition at line 32 of file TaskExecutor.php.