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