Dependency injection for the map provider.

This commit is contained in:
David Molineus
2016-10-06 09:09:11 +02:00
parent ee4c157e9c
commit 025ce1ba81
2 changed files with 25 additions and 8 deletions

View File

@@ -53,7 +53,9 @@ $container[LeafletServices::MAP_PROVIDER] = $container->share(function ($contain
$container[LeafletServices::DEFINITION_BUILDER],
$container[Services::EVENT_DISPATCHER],
$container[Services::INPUT],
$container[LeafletServices::MAP_ASSETS]
$container[LeafletServices::MAP_ASSETS],
$GLOBALS['LEAFLET_FILTERS'],
\Config::get('debugMode') || \Config::get('displayErrors')
);
});