Use the assets manager.

This commit is contained in:
David Molineus
2016-10-05 16:11:59 +02:00
parent 971f905ad2
commit 3e84260e79
2 changed files with 22 additions and 15 deletions

View File

@@ -56,8 +56,8 @@ $container[LeafletServices::MAP_PROVIDER] = $container->share(function ($contain
/*
* Contao assets handler. Loads Leaflet assets as contao (static) assets.
*/
$container[LeafletServices::MAP_ASSETS] = $container->share(function () {
return new ContaoAssets();
$container[LeafletServices::MAP_ASSETS] = $container->share(function ($container) {
return new ContaoAssets($container[Services::ASSETS_MANAGER]);
});
/*