load connexion from connexion file

This commit is contained in:
Nicolas Le Goff
2012-01-11 12:29:44 +01:00
parent d61b08ecea
commit c5c4418020

View File

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