Register definition encoders.

This commit is contained in:
David Molineus
2017-10-06 15:35:02 +02:00
parent 1b035901c1
commit a43b740ba0
2 changed files with 46 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ declare(strict_types=1);
namespace Netzmacht\Contao\Leaflet;
use Netzmacht\Contao\Leaflet\DependencyInjection\Pass\RegisterDefinitionMapperPass;
use Netzmacht\Contao\Leaflet\DependencyInjection\Pass\RegisterEncodersPass;
use Netzmacht\Contao\Toolkit\DependencyInjection\CompilerPass\AddTaggedServicesAsArgumentCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
@@ -32,6 +33,7 @@ class NetzmachtContaoLeafletBundle extends Bundle
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new RegisterDefinitionMapperPass());
$container->addCompilerPass(new RegisterEncodersPass());
$container->addCompilerPass(
new AddTaggedServicesAsArgumentCompilerPass(