Refactor data controller to fully use dependency injection

This commit is contained in:
David Molineus
2016-10-06 08:14:08 +02:00
parent bbd97ae47d
commit ea359e8b79
2 changed files with 42 additions and 18 deletions

View File

@@ -232,8 +232,13 @@ class MapProvider
return;
}
$controller = new DataController($this, $data);
$controller->execute();
$controller = new DataController(
$this,
$GLOBALS['LEAFLET_FILTERS'],
\Config::get('debugMode') || \Config::get('displayErrors')
);
$controller->execute($data);
if ($exit) {
exit;