Files
contao-leaflet-maps/src/Bundle/NetzmachtContaoLeafletBundle.php

47 lines
1.5 KiB
PHP
Raw Normal View History

2017-10-05 16:31:15 +02:00
<?php
/**
* Leaflet maps for Contao CMS.
*
* @package contao-leaflet-maps
* @author David Molineus <david.molineus@netzmacht.de>
2017-10-11 15:00:48 +02:00
* @copyright 2014-2017 netzmacht David Molineus. All rights reserved.
2017-10-05 16:31:15 +02:00
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
* @filesource
*/
declare(strict_types=1);
2017-10-11 11:46:19 +02:00
namespace Netzmacht\Contao\Leaflet\Bundle;
2017-10-05 16:31:15 +02:00
2017-10-11 11:46:19 +02:00
use Netzmacht\Contao\Leaflet\Bundle\DependencyInjection\Pass\RegisterDefinitionMapperPass;
use Netzmacht\Contao\Leaflet\Bundle\DependencyInjection\Pass\RegisterEncodersPass;
2017-10-17 17:11:35 +02:00
use Netzmacht\Contao\Leaflet\Bundle\DependencyInjection\Pass\RegisterLibrariesPass;
2017-10-10 15:25:59 +02:00
use Netzmacht\Contao\Toolkit\Bundle\DependencyInjection\Compiler\AddTaggedServicesAsArgumentPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
2017-10-05 16:31:15 +02:00
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class NetzmachtContaoLeafletBundle.
*
* @package Netzmacht\Contao\Leaflet
*/
class NetzmachtContaoLeafletBundle extends Bundle
{
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container)
{
2017-10-06 15:16:02 +02:00
$container->addCompilerPass(new RegisterDefinitionMapperPass());
2017-10-06 15:35:02 +02:00
$container->addCompilerPass(new RegisterEncodersPass());
2017-10-06 15:36:04 +02:00
$container->addCompilerPass(new RegisterLibrariesPass());
$container->addCompilerPass(
2017-10-09 12:00:09 +02:00
new AddTaggedServicesAsArgumentPass(
'netzmacht.contao_leaflet.layer_label_renderer',
'netzmacht.contao_leaflet.layer_label_renderer'
)
);
}
2017-10-05 16:31:15 +02:00
}