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

Resolve handlers for that Logger (if any provided) against an array of previously set up handlers. Returns an array of valid handlers.
public resolveHandlers ( array $loggerOptions, array $handlers ) : Monolog\Handler\HandlerInterface[]
$loggerOptions array Array of logger options
$handlers array Available Handlers to resolve against
Результат Monolog\Handler\HandlerInterface[] Array of Monolog handlers
 /**
  * @expectedException InvalidArgumentException
  */
 public function testResolveHandlersWithMismatch()
 {
     $options = array('handlers' => array('unexisting_handler', 'test_handler_2'));
     $handlers = array('test_handler_1' => new TestHandler(), 'test_handler_2' => new TestHandler());
     $loader = new LoggerLoader('testLogger', $options, $handlers);
     // This should throw an InvalidArgumentException
     $loader->resolveHandlers($options, $handlers);
 }