diff --git a/src/NetzmachtContaoLeafletBundle.php b/src/NetzmachtContaoLeafletBundle.php index e9ffbb4..9c2c089 100644 --- a/src/NetzmachtContaoLeafletBundle.php +++ b/src/NetzmachtContaoLeafletBundle.php @@ -14,6 +14,8 @@ declare(strict_types=1); namespace Netzmacht\Contao\Leaflet; +use Netzmacht\Contao\Toolkit\DependencyInjection\CompilerPass\AddTaggedServicesAsArgumentCompilerPass; +use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; /** @@ -23,4 +25,16 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; */ class NetzmachtContaoLeafletBundle extends Bundle { + /** + * {@inheritDoc} + */ + public function build(ContainerBuilder $container) + { + $container->addCompilerPass( + new AddTaggedServicesAsArgumentCompilerPass( + 'netzmacht.contao_leaflet_maps.layer_label_renderer', + 'netzmacht.contao_leaflet_maps.layer_label_renderer' + ) + ); + } }