public function __construct(array $values = array()) { if ($values['debug']) { Debug::enable(); } parent::__construct($values); $this->registerLogger($this); $this->registerTwig($this); }
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); }
public function __construct(array $values = array()) { parent::__construct($values); $this->registerLogger($this); $this->registerTwig($this); }