| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 1 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 19 | 1 | public function load(array $configs, ContainerBuilder $container): void | |
| 20 |     { | ||
| 21 | 1 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 22 | 1 |         $loader->load('services.xml'); | |
| 23 | |||
| 24 | 1 | $configuration = new Configuration(); | |
| 25 | 1 | $config = $this->processConfiguration($configuration, $configs); | |
| 26 | |||
| 27 | 1 | $container->setParameter( | |
| 28 | 1 | 'jin2chen.api_bundle.request.request_id_header', | |
| 29 | 1 | (string) $config['request']['request_id_header'] | |
| 30 | ); | ||
| 31 | |||
| 32 | 1 | $reference = $container->getDefinition(ExceptionConverter::class); | |
| 33 | 1 | $reference->setArgument(1, $config['response']['exception_converters'] ?? []); | |
| 34 | 1 | } | |
| 36 |