/** * Log service constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); // Active if (isset($this->options['active'])) { $this->active = (bool) $this->options['active']; } // Set logger $this->logger = $this->logger(); // Debugger if (isset($this->options['debugger'])) { $this->debugger(); } // Register error handler if (isset($this->options['error_handler'])) { $this->registerErrorHandler($this->options['error_handler']); } // Register exception handler if (isset($this->options['exception_handler'])) { $this->registerExceptionHandler($this->options['exception_handler']); } // Set profiler if (isset($this->options['profiler'])) { $this->profiler(); } // set Db profiler if (isset($this->options['db_profiler'])) { $this->dbProfiler(); } }
/** * Log service constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); if (!empty($this->options['encoding'])) { Renderer::setEncoding($this->options['encoding']); } if (!empty($this->options['filters'])) { Renderer::setFilters($this->options['filters']); } }
/** * Constructor * * @param array $options * Parameters to send to the service during instanciation */ public function __construct($options = array()) { parent::__construct($options); $this->init(); }
/** * {@inheritDoc} */ public function __construct(array $options = array()) { parent::__construct($options); if (!empty($this->options['root_path'])) { $this->configLocation = $this->options['root_path']; } else { $this->configLocation = Pi::path('config'); } if (!empty($this->options['custom_path'])) { $this->customLocation = $this->options['custom_path']; } else { $this->customLocation = $this->configLocation . '/custom'; } }