src/Config/Loader/ClassLoader/HandlerLoader.php
private function populateProcessors(array &$handlerOptions, array $processors)
    {
        $processorArray = array();

        if (isset($handlerOptions['processors'])) {
            foreach ($handlerOptions['processors'] as $processorId) {
                if (isset($processors[$processorId])) {
                    $processorArray[] = $processors[$processorId];
                } else {
                    throw new \InvalidArgumentException(
                        sprintf(
                            'Cannot add processor "%s" to the handler. Processor not found.',
                            $processorId
                        )
                    );
                }
            }

            $handlerOptions['processors'] = $processorArray;
        }
    }
private function populateProcessors(array &$handlerOptions, array $processors)
    {
        $processorArray = array();

        if (isset($handlerOptions['processors'])) {
            foreach ($handlerOptions['processors'] as $processorId) {
                if (isset($processors[$processorId])) {
                    $processorArray[] = $processors[$processorId];
                } else {
                    throw new \InvalidArgumentException(
                        sprintf(
                            'Cannot add processor "%s" to the handler. Processor not found.',
                            $processorId
                        )
                    );
                }
            }

            $handlerOptions['processors'] = $processorArray;
        }
    }
private function populateProcessors ( array & $ handlerOptions , array $ processors ) { $ processorArray = array ( ) ; if ( isset ( $ handlerOptions [ 'processors' ] ) ) { foreach ( $ handlerOptions [ 'processors' ] as $ processorId ) { if ( isset ( $ processors [ $ processorId ] ) ) { $ processorArray [ ] = $ processors [ $ processorId ] ; } else { throw new \ InvalidArgumentException ( sprintf ( 'Cannot add processor "%s" to the handler. Processor not found.' , $ processorId ) ) ; } } $ handlerOptions [ 'processors' ] = $ processorArray ; } }
Replace the processors in the option array with the corresponding callable from the
array of loaded and callable processors, if it exists.

@throws \InvalidArgumentException

@param  array &$handlerOptions Handler options
@param  callable[] $processors Array of processors to pick from
Replace the processors in the option array with the corresponding callable from the array of loaded and callable processors if it exists .