‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry Class Reference

Public Member Functions

 __construct (DependencyOrderingService $dependencyOrderingService)
 
 getProcessorByTask (TaskInterface $task)
 

Protected Attributes

array $registeredProcessors = []
 

Detailed Description

Registry for images processors.

Definition at line 26 of file ProcessorRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::__construct ( DependencyOrderingService  $dependencyOrderingService)

Auto register processors from configuration

Definition at line 33 of file ProcessorRegistry.php.

References $GLOBALS, and TYPO3\CMS\Core\Service\DependencyOrderingService\orderByDependencies().

Member Function Documentation

◆ getProcessorByTask()

TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::getProcessorByTask ( TaskInterface  $task)

Finds a matching processor that can process the given task. Registered processors will be tested by their priority from high to low.

Definition at line 44 of file ProcessorRegistry.php.

References TYPO3\CMS\Core\Resource\Processing\TaskInterface\getName(), and TYPO3\CMS\Core\Resource\Processing\TaskInterface\getType().

Member Data Documentation

◆ $registeredProcessors

array TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::$registeredProcessors = []
protected

Definition at line 28 of file ProcessorRegistry.php.