ArdentParameterBundle/DependencyInjection/ArdentParameterExtension.php

21 lines
607 B
PHP
Raw Normal View History

2019-05-23 17:04:48 +02:00
<?php
2020-07-25 15:40:27 +02:00
namespace Ardent\ArdentParameterBundle\DependencyInjection;
2019-05-23 17:04:48 +02:00
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
class ArdentParameterExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new YamlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config')
);
$loader->load('services.yaml');
}
}