PHP 클래스 Cascade\Config\Loader\ClassLoader\HandlerLoader

또한 보기: ClassLoader
저자: Raphael Antonmattei ([email protected])
상속: extends Cascade\Config\Loader\ClassLoader
파일 보기 프로젝트 열기: theorchard/monolog-cascade 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )