| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function load(array $configs, ContainerBuilder $container) |
||
| 16 | { |
||
| 17 | $configuration = new Configuration(); |
||
| 18 | $config = $this->processConfiguration($configuration, $configs); |
||
| 19 | |||
| 20 | $container->setParameter('xsolve_face_validator.client.azure.subscription_key', $config['azure_subscription_key']); |
||
| 21 | $container->setParameter( |
||
| 22 | 'xsolve_face_validator.client.azure.base_uri', |
||
| 23 | sprintf('https://%s.api.cognitive.microsoft.com/face/v1.0/', $config['region']) |
||
| 24 | ); |
||
| 25 | |||
| 26 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 27 | $loader->load('services.yml'); |
||
| 28 | } |
||
| 38 |