Use the assets manager.

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

No files matched your search

+2 -2
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]);
});
/*