Aimeos\Shop\Command\SetupCommand::getDbConfig PHP 메소드

getDbConfig() 보호된 메소드

Returns the database configuration from the config object.
protected getDbConfig ( Aimeos\MW\Config\Iface $conf ) : array
$conf Aimeos\MW\Config\Iface Config object
리턴 array Multi-dimensional associative list of database configuration parameters
    protected function getDbConfig(\Aimeos\MW\Config\Iface $conf)
    {
        $dbconfig = $conf->get('resource', array());
        foreach ($dbconfig as $rname => $dbconf) {
            if (strncmp($rname, 'db', 2) !== 0) {
                unset($dbconfig[$rname]);
            }
        }
        return $dbconfig;
    }