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>
|
|
|
|
|
* @copyright 2016-2017 netzmacht David Molineus. All rights reserved.
|
|
|
|
|
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
|
|
|
|
|
* @filesource
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet;
|
|
|
|
|
|
2017-10-06 10:09:56 +02:00
|
|
|
use Netzmacht\Contao\Toolkit\DependencyInjection\CompilerPass\AddTaggedServicesAsArgumentCompilerPass;
|
|
|
|
|
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
|
|
|
|
|
{
|
2017-10-06 10:09:56 +02:00
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
|
|
|
|
public function build(ContainerBuilder $container)
|
|
|
|
|
{
|
|
|
|
|
$container->addCompilerPass(
|
|
|
|
|
new AddTaggedServicesAsArgumentCompilerPass(
|
|
|
|
|
'netzmacht.contao_leaflet_maps.layer_label_renderer',
|
|
|
|
|
'netzmacht.contao_leaflet_maps.layer_label_renderer'
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
2017-10-05 16:31:15 +02:00
|
|
|
}
|