Ejemplo n.º 1
0
 /**
  * Initialize instance
  *
  * @param Charcoal_Config $config   configuration data
  */
 public function configure($config)
 {
     parent::configure($config);
     $this->file_name = $config->getString('file_name', '', TRUE);
     $this->logs_dir = $config->getString('logs_dir', '%APPLICATION_DIR%/logs', TRUE);
     $this->line_end = $config->getString('line_end', self::CRLF);
     // replace logs_dir with macro value
     $this->logs_dir = $this->fillMacroValue($this->logs_dir, true);
     // replace file_name with macro value
     $this->file_name = $this->fillMacroValue($this->file_name, true);
     if (empty($this->file_name)) {
         _throw(new Charcoal_ComponentConfigException('file_name', 'mandatory'));
     }
 }
Ejemplo n.º 2
0
 /**
  * Initialize instance
  *
  * @param Charcoal_Config $config   configuration data
  */
 public function configure($config)
 {
     parent::configure($config);
 }