Eccube\Controller\Install\InstallController::setPDO PHP Метод

setPDO() приватный Метод

private setPDO ( )
    private function setPDO()
    {
        $config_file = $this->config_path . '/database.yml';
        $config = Yaml::parse(file_get_contents($config_file));
        try {
            $this->PDO = \Doctrine\DBAL\DriverManager::getConnection($config['database'], new \Doctrine\DBAL\Configuration());
            $this->PDO->connect();
        } catch (\Exception $e) {
            $this->PDO->close();
            throw $e;
        }
        return $this;
    }