Refactor LayerCallbacks using dependency injection.

This commit is contained in:
David Molineus
2016-10-06 08:26:45 +02:00
parent ea359e8b79
commit 4068f62df1
3 changed files with 44 additions and 25 deletions

View File

@@ -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']
);
}
);