TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
TaskTypeRegistry Class Reference
Inheritance diagram for TaskTypeRegistry:
SingletonInterface

Public Member Functions

 __construct ()
 
 getTaskForType ($taskType, ProcessedFile $processedFile, array $processingConfiguration)
 

Protected Member Functions

 getClassForTaskType ($taskType)
 

Protected Attributes

 $registeredTaskTypes = []
 

Detailed Description

The registry for task types.

Definition at line 23 of file TaskTypeRegistry.php.

Constructor & Destructor Documentation

__construct ( )

Register task types from configuration

Definition at line 33 of file TaskTypeRegistry.php.

References $GLOBALS.

Member Function Documentation

getClassForTaskType (   $taskType)
protected

Returns the class that implements the given task type.

Parameters
string$taskType
Returns
string

Definition at line 44 of file TaskTypeRegistry.php.

Referenced by TaskTypeRegistry\getTaskForType().

getTaskForType (   $taskType,
ProcessedFile  $processedFile,
array  $processingConfiguration 
)
Parameters
string$taskType
ProcessedFile$processedFile
array$processingConfiguration
Returns
TaskInterface
Exceptions
RuntimeException

Definition at line 56 of file TaskTypeRegistry.php.

References TaskTypeRegistry\getClassForTaskType(), and GeneralUtility\makeInstance().

Member Data Documentation

$registeredTaskTypes = []
protected

Definition at line 28 of file TaskTypeRegistry.php.