Cascade\Config\Loader\ClassLoader\HandlerLoader::populateFormatters PHP Метод

populateFormatters() приватный Метод

If no formatter is specified in the options, Monolog will use its default formatter for the handler
private populateFormatters ( array &$handlerOptions, array $formatters )
$handlerOptions array
$formatters array Array of formatter to pick from
    private function populateFormatters(array &$handlerOptions, array $formatters)
    {
        if (isset($handlerOptions['formatter'])) {
            if (isset($formatters[$handlerOptions['formatter']])) {
                $handlerOptions['formatter'] = $formatters[$handlerOptions['formatter']];
            } else {
                throw new \InvalidArgumentException(sprintf('Formatter %s not found in the configured formatters', $handlerOptions['formatter']));
            }
        }
    }