PHP Класс Cascade\Config\Loader\ClassLoader\HandlerLoader

См. также: ClassLoader
Автор: Raphael Antonmattei ([email protected])
Наследование: extends Cascade\Config\Loader\ClassLoader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array &$handlerOptions, array $formatters = [], array $processors = [], array $handlers = [] ) Constructor
initExtraOptionsHandlers ( ) Loads the closures as option handlers. Add handlers to this function if you want to support additional custom options.

Приватные методы

Метод Описание
populateFormatters ( array &$handlerOptions, array $formatters ) Replace the formatter name in the option array with the corresponding object from the formatter array passed in if it exists.
populateHandlers ( array &$handlerOptions, array $handlers ) Replace the handler or handlers in the option array with the corresponding callable(s) from the array of loaded and callable handlers, if they exist.
populateProcessors ( array &$handlerOptions, array $processors ) Replace the processors in the option array with the corresponding callable from the array of loaded and callable processors, if it exists.

Описание методов

__construct() публичный метод

Constructor
См. также: ClassLoader::__construct
См. также: Monolog\Handler classes for handler options
public __construct ( array &$handlerOptions, array $formatters = [], array $processors = [], array $handlers = [] )
$handlerOptions array Handler options
$formatters array Array of formatter to pick from
$processors array Array of processors to pick from
$handlers array Array of handlers to pick from

initExtraOptionsHandlers() публичный статический метод

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 ( )