| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function load(array $configs, ContainerBuilder $container): void |
||
| 25 | { |
||
| 26 | $configuration = new Configuration(); |
||
| 27 | $config = $this->processConfiguration($configuration, $configs); |
||
| 28 | |||
| 29 | $bundles = $container->getParameter('kernel.bundles'); |
||
| 30 | |||
| 31 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 32 | |||
| 33 | $loader->load('services.xml'); |
||
| 34 | |||
| 35 | if (isset($bundles['SonataBlockBundle'])) { |
||
| 36 | $loader->load('block.xml'); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->configureHttpClient($container, $config); |
||
| 40 | } |
||
| 41 | |||
| 52 |