Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | 4 | public function load(array $configs, ContainerBuilder $container) |
|
21 | { |
||
22 | 4 | $configuration = new Configuration(); |
|
23 | 4 | $config = $this->processConfiguration($configuration, $configs); |
|
24 | |||
25 | 4 | if (null !== $config['default_client']) { |
|
26 | 1 | $container->setAlias( |
|
27 | 1 | 'gbprod.elastica_provider.default_client', |
|
28 | 1 | $config['default_client'] |
|
29 | 1 | ); |
|
30 | 1 | } |
|
31 | |||
32 | 4 | $loader = new Loader\YamlFileLoader( |
|
33 | 4 | $container, |
|
34 | 4 | new FileLocator(__DIR__.'/../Resources/config') |
|
35 | 4 | ); |
|
36 | |||
37 | 4 | $loader->load('services.yml'); |
|
38 | } |
||
39 | } |