/** * 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']}`"); } }
/** * 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']}`"); } }