Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function load(array $configs, ContainerBuilder $container) |
||
21 | { |
||
22 | $loader = new XmlFileLoader( |
||
23 | $container, |
||
24 | new FileLocator(__DIR__.'/../Resources/config') |
||
25 | ); |
||
26 | |||
27 | $loader->load('services.xml'); |
||
28 | |||
29 | $configuration = $this->getConfiguration($configs, $container); |
||
30 | $config = $this->processConfiguration($configuration, $configs); |
||
|
|||
31 | |||
32 | if (null !== $config['failed_validation']) { |
||
33 | $container->setAlias( |
||
34 | 'request_validator.failed_validation', |
||
35 | $config['failed_validation'] |
||
36 | )->setPublic(true); |
||
37 | } |
||
48 |