Redaxscript\Console\Command\Config::_set PHP 메소드

_set() 보호된 메소드

set the config
부터: 3.0.0
protected _set ( array $optionArray = [] ) : boolean
$optionArray array
리턴 boolean
    protected function _set($optionArray = [])
    {
        $dbType = $this->prompt('db-type', $optionArray);
        $dbHost = $this->prompt('db-host', $optionArray);
        if ($dbType && $dbHost) {
            $this->_config->set('dbType', $dbType);
            $this->_config->set('dbHost', $dbHost);
            $this->_config->set('dbName', $optionArray['db-name']);
            $this->_config->set('dbUser', $optionArray['db-user']);
            $this->_config->set('dbPassword', $optionArray['db-password']);
            $this->_config->set('dbPrefix', $optionArray['db-prefix']);
            $this->_config->set('dbSalt', sha1(uniqid()));
            return $this->_config->write();
        }
        return false;
    }