mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2025-11-30 04:33:40 +01:00
29 lines
723 B
PHP
29 lines
723 B
PHP
<?php
|
|
|
|
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;
|
|
|
|
use function dirname;
|
|
|
|
class LeafletGeocodeWidgetExtension extends Extension
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function load(array $configs, ContainerBuilder $container): void
|
|
{
|
|
$loader = new YamlFileLoader(
|
|
$container,
|
|
new FileLocator(dirname(__DIR__) . '/Resources/config')
|
|
);
|
|
|
|
$loader->load('listeners.yml');
|
|
}
|
|
}
|