From 25f89f91b6f28d912032436bfd0fb52d8064f34a Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 6 Oct 2017 10:09:56 +0200 Subject: [PATCH] Add compiler pass for layer label renderer. --- src/NetzmachtContaoLeafletBundle.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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' + ) + ); + } }