TaskTypeRegistry
class \
The registry for task types.
Table of Contents
Properties
- $registeredTaskTypes : array
Methods
- __construct() : mixed
- Register task types from configuration
- getTaskForType() : TaskInterface
- getClassForTaskType() : string|null
- Returns the class that implements the given task type.
Properties
$registeredTaskTypes
protected
array
$registeredTaskTypes
= []
Methods
__construct()
Register task types from configuration
public
__construct() : mixed
getTaskForType()
public
getTaskForType(string $taskType, ProcessedResourceInterface $processedFile, array $processingConfiguration) : TaskInterface
Parameters
- $taskType : string
- $processedFile : ProcessedResourceInterface
- $processingConfiguration : array
Tags
Return values
TaskInterfacegetClassForTaskType()
Returns the class that implements the given task type.
protected
getClassForTaskType(string $taskType) : string|null
Parameters
- $taskType : string