mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 20:43:52 +01:00
Refactor data controller to fully use dependency injection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user