Cascade\Config\Loader\ClassLoader\HandlerLoader::initExtraOptionsHandlers PHP Method

initExtraOptionsHandlers() public static method

The syntax is the following: array( '\Full\Absolute\Namespace\ClassName' => array( 'myOption' => Closure ), ... ) You can use the '*' wildcard if you want to set up an option for all Handler classes
public static initExtraOptionsHandlers ( )
    public static function initExtraOptionsHandlers()
    {
        self::$extraOptionHandlers = array('*' => array('formatter' => function (HandlerInterface $instance, FormatterInterface $formatter) {
            $instance->setFormatter($formatter);
        }, 'processors' => function (HandlerInterface $instance, array $processors) {
            // We need to reverse the array because Monolog "pushes" processors to top of the stack
            foreach (array_reverse($processors) as $processor) {
                $instance->pushProcessor($processor);
            }
        }), 'Monolog\\Handler\\LogglyHandler' => array('tags' => function (LogglyHandler $instance, $tags) {
            $instance->setTag($tags);
        }));
    }