lithium\g11n\catalog\adapter\Gettext::_init PHP Method

_init() protected method

Initializer. Checks if the configured path exists.
protected _init ( ) : void
return void
    protected function _init()
    {
        parent::_init();
        if (!is_dir($this->_config['path'])) {
            $message = "Gettext directory does not exist at path `{$this->_config['path']}`.";
            throw new ConfigException($message);
        }
    }