Register definition mappers.

This commit is contained in:
David Molineus
2017-10-06 15:16:02 +02:00
parent 25b90f4c13
commit 1b035901c1
2 changed files with 53 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ declare(strict_types=1);
namespace Netzmacht\Contao\Leaflet;
use Netzmacht\Contao\Leaflet\DependencyInjection\Pass\RegisterDefinitionMapperPass;
use Netzmacht\Contao\Toolkit\DependencyInjection\CompilerPass\AddTaggedServicesAsArgumentCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
@@ -30,6 +31,8 @@ class NetzmachtContaoLeafletBundle extends Bundle
*/
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new RegisterDefinitionMapperPass());
$container->addCompilerPass(
new AddTaggedServicesAsArgumentCompilerPass(
'netzmacht.contao_leaflet_maps.layer_label_renderer',