Files
contao-leaflet-geocode-widget/src/DependencyInjection/LeafletGeocodeWidgetExtension.php

29 lines
723 B
PHP
Raw Normal View History

<?php
2022-11-29 11:05:30 +01:00
declare(strict_types=1);
namespace Netzmacht\Contao\Leaflet\GeocodeWidget\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
2022-11-29 11:05:30 +01:00
use function dirname;
class LeafletGeocodeWidgetExtension extends Extension
{
/**
* {@inheritdoc}
*/
2022-11-29 11:05:30 +01:00
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new YamlFileLoader(
$container,
new FileLocator(dirname(__DIR__) . '/Resources/config')
);
$loader->load('listeners.yml');
}
}