load connexion from connexion file

This commit is contained in:
Nicolas Le Goff
2012-01-11 12:27:34 +01:00
parent 703f84177b
commit d61b08ecea

View File

@@ -105,7 +105,9 @@ phrasea::headers();
);
$configuration = new \Alchemy\Phrasea\Core\Configuration($handler);
$connexion = $configuration->getConnexion();
$choosenConnexion = $configuration->getPhraseanet()->get('database');
$connexion = $configuration->getConnexion($choosenConnexion);
$hostname = $connexion->get('host');
$port = $connexion->get('port');