| 1 | <?php |
||
| 2 | |||
| 3 | namespace Micayael\NativeQueryFromFileBuilderBundle\DependencyInjection; |
||
| 4 | |||
| 5 | use Symfony\Component\Config\FileLocator; |
||
| 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 7 | use Symfony\Component\DependencyInjection\Extension\Extension; |
||
| 8 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
||
| 9 | |||
| 10 | class NativeQueryFromFileBuilderExtension extends Extension |
||
| 11 | { |
||
| 12 | public function load(array $configs, ContainerBuilder $container) |
||
| 13 | { |
||
| 14 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 15 | $loader->load('services.yaml'); |
||
| 16 | |||
| 17 | $configuration = $this->getConfiguration($configs, $container); |
||
| 18 | $config = $this->processConfiguration($configuration, $configs); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | $container->setParameter('micayael_native_query_from_file_bundle_config', $config); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |