lithium\analysis\logger\adapter\Cache::__construct PHP Метод

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

Constructor.
См. также: lithium\util\String
public __construct ( array $config = [] ) : void
$config array Possible configuration options are: - `'config'`: The name of the cache configuration to use; defaults to none. - `'expiry'`: Defines when the logged item should expire, by default will try to expire as late as possible. - `'key'`: Either a pattern where priority and timestamp will be inserted or a closure wich must return a key to store the message under and which gets passed a params array as first and only argument; defaults to `'log_{:priority}_{:timestamp}'`.
Результат void
    public function __construct(array $config = array())
    {
        $cache = $this->_classes['cache'];
        $defaults = array('config' => null, 'expiry' => $cache::PERSIST, 'key' => 'log_{:priority}_{:timestamp}');
        parent::__construct($config + $defaults);
    }