Exemple #1
0
 /**
  * Initializer.  Checks if the configured path exists.
  *
  * @return void
  * @throws \Exception
  */
 protected function _init()
 {
     parent::_init();
     if (!is_dir($this->_config['path'])) {
         throw new Exception("Cldr directory does not exist at `{$this->_config['path']}`");
     }
 }
Exemple #2
0
 /**
  * Initializer.  Checks if the configured path exists.
  *
  * @return void
  * @throws \Exception
  */
 protected function _init()
 {
     parent::_init();
     if (!Libraries::get($this->_config['library'])) {
         throw new Exception("Library `{$this->_config['library']}` is not configured");
     }
 }
Exemple #3
0
 /**
  * Initializer.  Checks if the configured path exists.
  *
  * @return void
  * @throws \Exception
  */
 protected function _init()
 {
     parent::_init();
     if (!is_dir($this->_config['path'])) {
         $message = "Php directory does not exist at path `{$this->_config['path']}`.";
         throw new ConfigException($message);
     }
 }