コード例 #1
0
ファイル: Cldr.php プロジェクト: kdambekalns/framework-benchs
 /**
  * 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']}`");
     }
 }
コード例 #2
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("Gettext directory does not exist at `{$this->_config['path']}`");
     }
     if (!is_writable($this->_config['path'])) {
         throw new Exception("Gettext directory is not writable at `{$this->_config['path']}`");
     }
 }