Refactor LayerCallbacks using dependency injection.
This commit is contained in:
1 parent
ea359e8b79
commit
4068f62df1
3 files changed
+44
-25
No files matched your search
@@ -178,7 +178,9 @@ $container['leaflet.dca.layer-callbacks'] = $container->share(
|
||||
return new LayerCallbacks(
|
||||
$container[Services::DCA_MANAGER],
|
||||
$container[Services::DATABASE_CONNECTION],
|
||||
$GLOBALS['LEAFLET_LAYERS']
|
||||
$container[Services::TRANSLATOR],
|
||||
$GLOBALS['LEAFLET_LAYERS'],
|
||||
$GLOBALS['LEAFLET_TILE_PROVIDERS']
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user