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

_list() protected method

list the config
Since: 3.0.0
protected _list ( ) : string
return string
    protected function _list()
    {
        $output = null;
        $configArray = $this->_config->get();
        /* process config */
        foreach ($configArray as $key => $value) {
            if ($key === 'dbPassword' || $key === 'dbSalt') {
                $value = str_repeat('*', strlen($value));
            }
            if ($value) {
                $output .= str_pad($key, 30) . $value . PHP_EOL;
            }
        }
        return $output;
    }