Esempio n. 1
0
 protected function __construct($namespace = null)
 {
     parent::__construct($namespace);
     // перечитываем дефолтные опции конфиругации
     $this->_Proxy = new Proxy();
     $this->_Proxy->configure();
 }
Esempio n. 2
0
 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']]);
 }
Esempio n. 3
0
 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) {
     }
 }