Add compiler pass for layer label renderer.

This commit is contained in:
David Molineus
2017-10-06 10:09:56 +02:00
parent f5badd14c5
commit 25f89f91b6

View File

@@ -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'
)
);
}
}