Change instantiation of ORMs to allow adding listeners.

This commit is contained in:
Benoît Burnichon
2015-07-17 16:10:00 +02:00
parent 7462534fd2
commit 43a68777d1
4 changed files with 108 additions and 55 deletions

View File

@@ -69,6 +69,7 @@ $cli = new CLI("
. ' Phraseanet Developer Tools ', $version->getName() . ' ' . $version->getNumber());
if ($cli['configuration.store']->isSetup()) {
$cli->loadPlugins();
$helpers = [
'db' => new ConnectionHelper($cli['orm.em']->getConnection()),
'em' => new EntityManagerHelper($cli['orm.em'])