lithium\console\command\Library::_init PHP Method

_init() protected method

Throws an exception if the command is initialized without a request object which is needed by _toPath() in order to determine the current working directory. This most often happens if the command is inspected using the ReflectionClass.
protected _init ( ) : void
return void
    protected function _init()
    {
        parent::_init();
        if ($this->server) {
            $this->_settings['servers'][$this->server] = true;
        }
        if (file_exists($this->conf)) {
            $this->_settings += (array) json_decode($this->conf, true);
        }
        $this->path = $this->_toPath($this->path ?: 'libraries');
        $this->force = $this->f ? $this->f : $this->force;
    }