Refactor data controller to fully use dependency injection

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

No files matched your search

+7 -2
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;