public function resolveHandlers(array $loggerOptions, array $handlers)
{
$handlerArray = array();
if (isset($loggerOptions['handlers'])) {
// If handlers have been specified and, they do exist in the provided handlers array
// We return an array of handler objects
foreach ($loggerOptions['handlers'] as $handlerId) {
if (isset($handlers[$handlerId])) {
$handlerArray[] = $handlers[$handlerId];
} else {
throw new \InvalidArgumentException(sprintf('Cannot add handler "%s" to the logger "%s". Handler not found.', $handlerId, $this->logger->getName()));
}
}
}
// If nothing is set there is nothing to resolve, Handlers will be Monolog's default
return $handlerArray;
}