PHP 클래스 cascade\Config

저자: Raphael Antonmattei ([email protected])
파일 보기 프로젝트 열기: theorchard/monolog-cascade 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$formatters Monolog\Formatter\FormatterInterface[] Array of Formatter objects
$handlers Monolog\Handler\HandlerInterface[] Array of Handler objects
$input string | array Input from user. This is either a file path, a string or an array
$loader Cascade\Config\ConfigLoader Config loader
$loggers Monolog\Logger[] Array of logger objects
$options array Array of logger configuration options: (logger attributes, formatters, handlers, etc.)
$processors callable[] Array of Processor objects

공개 메소드들

메소드 설명
__construct ( string | array $input, Cascade\Config\ConfigLoader $loader ) Instantiate a Config object
configure ( ) Configure and register Logger(s) according to the options passed in
load ( ) Load config options into the options array using the injected loader

보호된 메소드들

메소드 설명
configureFormatters ( array $formatters = [] ) Configure the formatters
configureHandlers ( array $handlers ) Configure the handlers
configureLoggers ( array $loggers ) Configure the loggers
configureProcessors ( array $processors ) Configure the processors

메소드 상세

__construct() 공개 메소드

Instantiate a Config object
public __construct ( string | array $input, Cascade\Config\ConfigLoader $loader )
$input string | array User input
$loader Cascade\Config\ConfigLoader Config loader object

configure() 공개 메소드

Configure and register Logger(s) according to the options passed in
public configure ( )

configureFormatters() 보호된 메소드

Configure the formatters
protected configureFormatters ( array $formatters = [] )
$formatters array Array of formatter options

configureHandlers() 보호된 메소드

Configure the handlers
protected configureHandlers ( array $handlers )
$handlers array Array of handler options

configureLoggers() 보호된 메소드

Configure the loggers
protected configureLoggers ( array $loggers )
$loggers array Array of logger options

configureProcessors() 보호된 메소드

Configure the processors
protected configureProcessors ( array $processors )
$processors array Array of processor options

load() 공개 메소드

Load config options into the options array using the injected loader
public load ( )

프로퍼티 상세

$formatters 보호되어 있는 프로퍼티

Array of Formatter objects
protected Monolog\Formatter\FormatterInterface[] $formatters
리턴 Monolog\Formatter\FormatterInterface[]

$handlers 보호되어 있는 프로퍼티

Array of Handler objects
protected Monolog\Handler\HandlerInterface[] $handlers
리턴 Monolog\Handler\HandlerInterface[]

$input 보호되어 있는 프로퍼티

Input from user. This is either a file path, a string or an array
protected string|array $input
리턴 string | array

$loader 보호되어 있는 프로퍼티

Config loader
protected ConfigLoader,Cascade\Config $loader
리턴 Cascade\Config\ConfigLoader

$loggers 보호되어 있는 프로퍼티

Array of logger objects
protected Monolog\Logger[] $loggers
리턴 Monolog\Logger[]

$options 보호되어 있는 프로퍼티

Array of logger configuration options: (logger attributes, formatters, handlers, etc.)
protected array $options
리턴 array

$processors 보호되어 있는 프로퍼티

Array of Processor objects
protected callable[] $processors
리턴 callable[]