| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function load(array $configs, ContainerBuilder $container) |
||
| 24 | { |
||
| 25 | $configuration = new Configuration(); |
||
| 26 | $config = $this->processConfiguration($configuration, $configs); |
||
| 27 | |||
| 28 | $loader = new Loader\YamlFileLoader( |
||
| 29 | $container, |
||
| 30 | new FileLocator(__DIR__.'/../Resources/config') |
||
| 31 | ); |
||
| 32 | |||
| 33 | $container->setParameter('open_exchange_rates_service.api_id', $config['api_id']); |
||
| 34 | $container->setParameter( |
||
| 35 | 'open_exchange_rates_service.api_configuration', |
||
| 36 | $config['api_configuration'] |
||
| 37 | ); |
||
| 38 | $loader->load('parameters.yml'); |
||
| 39 | $loader->load('services.yml'); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |