/** * 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 (!Libraries::get($this->_config['library'])) { throw new Exception("Library `{$this->_config['library']}` is not configured"); } }
/** * 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); } }