コード例 #1
0
 public function __construct(array $values = array())
 {
     if ($values['debug']) {
         Debug::enable();
     }
     parent::__construct($values);
     $this->registerLogger($this);
     $this->registerTwig($this);
 }
コード例 #2
0
ファイル: Application.php プロジェクト: fire1/liby
 public function __construct($mode = null)
 {
     // Create Chrome logger bridge
     $this->initLogger();
     if (is_null($mode)) {
         $mode = 'sandbox';
     }
     //
     // Load App configs
     $values = $this->loadConfigs($mode);
     //
     // Enable debug
     if ($values['debug']) {
         Debug::enable();
         $this->logger->setMode(true);
     }
     \debug::info("Debug mode is " . var_export($values['debug'], true));
     parent::__construct($values);
     $this->registerLogger($this);
     $this->registerTwig($this);
     $this->registerBaseService(self::$mode);
 }
コード例 #3
0
ファイル: Application.php プロジェクト: aptoma/silex-extras
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->registerLogger($this);
     $this->registerTwig($this);
 }