Replace app['phraseanet.appbox']->get_databox using trait

This commit is contained in:
Benoît Burnichon
2015-06-30 11:32:34 +02:00
parent 360e69ff8d
commit 6e651f3b07
75 changed files with 171 additions and 151 deletions

View File

@@ -40,7 +40,7 @@ class module_report_sql
public function __construct(Application $app, module_report $report)
{
$this->conn = $app['phraseanet.appbox']->get_connection();
$this->connbas = $app['phraseanet.appbox']->get_databox($report->getSbasId())->get_connection();
$this->connbas = $app->findDataboxById($report->getSbasId())->get_connection();
$this->filter = new module_report_sqlfilter($app, $report);
$this->sql = '';
$this->params = [];