‪TYPO3CMS  11.5
TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
ProcessorInterface getProcessorByTask (TaskInterface $task)
 

Protected Member Functions

array getRegisteredProcessors ()
 

Protected Attributes

array $registeredProcessors = array( )
 

Detailed Description

Registry for images processors.

Definition at line 27 of file ProcessorRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::__construct ( )

Auto register processors from configuration

Definition at line 36 of file ProcessorRegistry.php.

References TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry\getRegisteredProcessors().

Member Function Documentation

◆ getProcessorByTask()

ProcessorInterface 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.

Parameters
TaskInterface$task
Returns
ProcessorInterface

Definition at line 49 of file ProcessorRegistry.php.

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

◆ getRegisteredProcessors()

array TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::getRegisteredProcessors ( )
protected
Returns
‪array

Definition at line 94 of file ProcessorRegistry.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry\__construct().

Member Data Documentation

◆ $registeredProcessors

array TYPO3\CMS\Core\Resource\Processing\ProcessorRegistry::$registeredProcessors = array( )
protected

Definition at line 31 of file ProcessorRegistry.php.