| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function load(array $configs, ContainerBuilder $container) |
||
| 20 | { |
||
| 21 | $configuration = new Configuration(); |
||
| 22 | $config = $this->processConfiguration($configuration, $configs); |
||
| 23 | |||
| 24 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 25 | $loader->load('services.yml'); |
||
| 26 | |||
| 27 | // Once the services definition are read, get your service and add a method call to setConfig() |
||
| 28 | $sillyServiceDefintion = $container->getDefinition('werkspot.bing_ads.api.client'); |
||
| 29 | $sillyServiceDefintion->addMethodCall('setConfig', [$config]); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |