protected function getDatabasePDO()
    {
        $configPath = THELIA_CONF_DIR . "database.yml";

        if (!file_exists($configPath)) {
            throw new UpdateException("Thelia is not installed yet");
        }

        $definePropel = new DatabaseConfigurationSource(
            Yaml::parse(file_get_contents($configPath)),
            $this->getEnvParameters()
        );

        return $definePropel->getTheliaConnectionPDO();
    }
protected function getDatabasePDO()
    {
        $configPath = THELIA_CONF_DIR . "database.yml";

        if (!file_exists($configPath)) {
            throw new UpdateException("Thelia is not installed yet");
        }

        $definePropel = new DatabaseConfigurationSource(
            Yaml::parse(file_get_contents($configPath)),
            $this->getEnvParameters()
        );

        return $definePropel->getTheliaConnectionPDO();
    }
protected function getDatabasePDO ( ) { $ configPath = THELIA_CONF_DIR . "database.yml" ; if ( ! file_exists ( $ configPath ) ) { throw new UpdateException ( "Thelia is not installed yet" ) ; } $ definePropel = new DatabaseConfigurationSource ( Yaml :: parse ( file_get_contents ( $ configPath ) ) , $ this -> getEnvParameters ( ) ) ; return $ definePropel -> getTheliaConnectionPDO ( ) ; }
retrieve the database connection

@return \PDO
@throws ParseException
@throws \PDOException
retrieve the database connection