| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 6 | public function load(array $configs, ContainerBuilder $container) |
|
| 21 | { |
||
| 22 | 6 | $configuration = new Configuration(); |
|
| 23 | 6 | $config = $this->processConfiguration($configuration, $configs); |
|
| 24 | 6 | $container->setParameter( |
|
| 25 | 6 | 'gbprod.elastica_specification_dsl.class', |
|
| 26 | 6 | 'Elastica\\QueryBuilder\\Version\\'.$config['dsl_version'] |
|
| 27 | ); |
||
| 28 | |||
| 29 | 6 | $loader = new Loader\YamlFileLoader( |
|
| 30 | 6 | $container, |
|
| 31 | 6 | new FileLocator(__DIR__.'/../Resources/config') |
|
| 32 | ); |
||
| 33 | |||
| 34 | 6 | $loader->load('services.yml'); |
|
| 35 | 6 | } |
|
| 36 | } |
||
| 37 |