protected function __construct($namespace = null) { parent::__construct($namespace); // перечитываем дефолтные опции конфиругации $this->_Proxy = new Proxy(); $this->_Proxy->configure(); }
protected function __construct($config = array()) { parent::__construct(__NAMESPACE__, $config); $class = "Logger\\Engine\\{$this->_config['engine']}"; if (!class_exists($class)) { throw new Exception('Неверный механизм логирования'); } $this->_Engine = new $class(null, $this->_config[$this->_config['engine']]); }
protected function __construct($config = array()) { parent::__construct(__NAMESPACE__, $config); try { if ($this->_config['cache'] && class_exists('Cache\\Db')) { $this->_Cache = new Cache\Db(); } } catch (\Exception $e) { } }