Sentry/Client.php
function setProcessorsFromOptions($options)
    {
        $processors = [];
        foreach (Util::get($options, 'processors', self::getDefaultProcessors()) as $processor) {
            $new_processor = new $processor($this);

            if (isset($options['processorOptions']) && is_array($options['processorOptions'])) {
                if (isset($options['processorOptions'][$processor]) && method_exists($processor, 'setProcessorOptions')) {
                    $new_processor->setProcessorOptions($options['processorOptions'][$processor]);
                }
            }
            $processors[] = $new_processor;
        }
        return $processors;
    }
function setProcessorsFromOptions($options)
    {
        $processors = [];
        foreach (Util::get($options, 'processors', self::getDefaultProcessors()) as $processor) {
            $new_processor = new $processor($this);

            if (isset($options['processorOptions']) && is_array($options['processorOptions'])) {
                if (isset($options['processorOptions'][$processor]) && method_exists($processor, 'setProcessorOptions')) {
                    $new_processor->setProcessorOptions($options['processorOptions'][$processor]);
                }
            }
            $processors[] = $new_processor;
        }
        return $processors;
    }
function setProcessorsFromOptions ( $ options ) { $ processors = [ ] ; foreach ( Util :: get ( $ options , 'processors' , self :: getDefaultProcessors ( ) ) as $ processor ) { $ new_processor = new $ processor ( $ this ) ; if ( isset ( $ options [ 'processorOptions' ] ) && is_array ( $ options [ 'processorOptions' ] ) ) { if ( isset ( $ options [ 'processorOptions' ] [ $ processor ] ) && method_exists ( $ processor , 'setProcessorOptions' ) ) { $ new_processor -> setProcessorOptions ( $ options [ 'processorOptions' ] [ $ processor ] ) ; } } $ processors [ ] = $ new_processor ; } return $ processors ; }
Sets the Processor sub-classes to be used when data is processed before being
sent to Sentry.

@param $options
@return array
Sets the Processor sub - classes to be used when data is processed before being sent to Sentry .