diff --git a/src/DependencyInjection/Pass/RegisterEncodersPass.php b/src/DependencyInjection/Pass/RegisterEncodersPass.php index 4281f4e..b3efa8a 100644 --- a/src/DependencyInjection/Pass/RegisterEncodersPass.php +++ b/src/DependencyInjection/Pass/RegisterEncodersPass.php @@ -37,7 +37,7 @@ class RegisterEncodersPass implements CompilerPassInterface $definition = $container->getDefinition('netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'); $serviceIds = $container->findTaggedServiceIds('netzmacht.contao_leaflet_maps.encoder'); - foreach ($serviceIds as $serviceId => $tags) { + foreach (array_keys($serviceIds) as $serviceId) { $definition->addMethodCall('addSubscriber', [new Reference($serviceId)]); } } diff --git a/src/Listener/LoadAssetsListener.php b/src/Listener/LoadAssetsListener.php index 62907a2..1192315 100644 --- a/src/Listener/LoadAssetsListener.php +++ b/src/Listener/LoadAssetsListener.php @@ -60,6 +60,7 @@ class LoadAssetsListener { $this->assets = $assets; $this->definitionMapper = $definitionMapper; + $this->libraries = $libraries; } /**