mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 11:33:46 +01:00
Add compiler pass for layer label renderer.
This commit is contained in:
@@ -14,6 +14,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet;
|
namespace Netzmacht\Contao\Leaflet;
|
||||||
|
|
||||||
|
use Netzmacht\Contao\Toolkit\DependencyInjection\CompilerPass\AddTaggedServicesAsArgumentCompilerPass;
|
||||||
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -23,4 +25,16 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|||||||
*/
|
*/
|
||||||
class NetzmachtContaoLeafletBundle extends 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'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user