ProcessorRegistry
Registry for images processors.
Table of Contents
Properties
- $registeredProcessors : array<string|int, mixed>
Methods
- __construct() : mixed
- Auto register processors from configuration
- getProcessorByTask() : ProcessorInterface
- Finds a matching processor that can process the given task.
Properties
$registeredProcessors
protected
array<string|int, mixed>
$registeredProcessors
= []
Methods
__construct()
Auto register processors from configuration
public
__construct(DependencyOrderingService $dependencyOrderingService) : mixed
Parameters
- $dependencyOrderingService : DependencyOrderingService
getProcessorByTask()
Finds a matching processor that can process the given task.
public
getProcessorByTask(TaskInterface $task) : ProcessorInterface
Registered processors will be tested by their priority from high to low.
Parameters
- $task : TaskInterface