Nette\Bridges\DatabaseDI\DatabaseExtension::loadConfiguration PHP Method

loadConfiguration() public method

public loadConfiguration ( )
    public function loadConfiguration()
    {
        $configs = $this->getConfig();
        foreach ($configs as $k => $v) {
            if (is_scalar($v)) {
                $configs = ['default' => $configs];
                break;
            }
        }
        $defaults = $this->databaseDefaults;
        $defaults['autowired'] = TRUE;
        foreach ((array) $configs as $name => $config) {
            if (!is_array($config)) {
                continue;
            }
            $config = $this->validateConfig($defaults, $config, $this->prefix($name));
            $defaults['autowired'] = FALSE;
            $this->setupDatabase($config, $name);
        }
    }