| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function load(array $configs, ContainerBuilder $container): void |
||
| 22 | { |
||
| 23 | $configuration = new Configuration(); |
||
| 24 | $config = $this->processConfiguration($configuration, $configs); |
||
| 25 | |||
| 26 | $container->setParameter('projet_normandie_article.default_locale', $config['default_locale']); |
||
| 27 | $container->setParameter('projet_normandie_article.supported_locales', $config['supported_locales']); |
||
| 28 | |||
| 29 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config')); |
||
| 30 | $loader->load('services.yml'); |
||
| 31 | $bundles = $container->getParameter('kernel.bundles'); |
||
| 32 | if (array_key_exists('SonataAdminBundle', $bundles)) { |
||
|
|
|||
| 33 | $loader->load('sonata_admin.yml'); |
||
| 34 | } |
||
| 37 |