resolveProcessors() публичный Метод

Resolve processors for that Logger (if any provided) against an array of previously set up processors.
public resolveProcessors ( array $loggerOptions, callable[] $processors ) : callable[]
$loggerOptions array Array of logger options
$processors callable[] Available Processors to resolve against
Результат callable[] Array of Monolog processors
 /**
  * @expectedException InvalidArgumentException
  */
 public function testResolveProcessorsWithMismatch()
 {
     $dummyClosure = function () {
         // Empty function
     };
     $options = array('processors' => array('unexisting_processor', 'test_processor_2'));
     $processors = array('test_processor_1' => $dummyClosure, 'test_processor_2' => $dummyClosure);
     $loader = new LoggerLoader('testLogger', $options, array(), $processors);
     // This should throw an InvalidArgumentException
     $loader->resolveProcessors($options, $processors);
 }