ProcessorRegistry implements SingletonInterface
Registry for images processors.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
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.
- getRegisteredProcessors() : array<string|int, mixed>
Properties
$registeredProcessors
protected
array<string|int, mixed>
$registeredProcessors
= []
Methods
__construct()
Auto register processors from configuration
public
__construct() : mixed
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
Return values
ProcessorInterfacegetRegisteredProcessors()
protected
getRegisteredProcessors() : array<string|int, mixed>