Redaxscript\Console\Command\Config::_parse PHP Method

_parse() protected method

parse the config
Since: 3.0.0
protected _parse ( array $optionArray = [] ) : boolean
$optionArray array
return boolean
    protected function _parse($optionArray = [])
    {
        $dbUrl = $this->prompt('db-url', $optionArray);
        $dbUrl = $optionArray['db-env'] ? getenv($dbUrl) : $dbUrl;
        if ($dbUrl) {
            $this->_config->parse($dbUrl);
            return $this->_config->write();
        }
        return false;
    }