Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 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 | $bundles = $container->getParameter('kernel.bundles'); |
||
27 | |||
28 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
29 | |||
30 | $loader->load('services.xml'); |
||
31 | $loader->load('twig.xml'); |
||
32 | |||
33 | if (isset($bundles['SonataBlockBundle'])) { |
||
34 | $loader->load('block.xml'); |
||
35 | } |
||
36 | |||
37 | $this->configureHttpClient($container, $config); |
||
38 | } |
||
39 | |||
46 |