| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function process(ContainerBuilder $container) |
||
| 31 | { |
||
| 32 | $handlers = []; |
||
| 33 | foreach ($container->findTaggedServiceIds('nelmio_api_doc.extractor.handler') as $id => $attributes) { |
||
| 34 | $handlers[] = new Reference($id); |
||
| 35 | } |
||
| 36 | $annotationProviders = []; |
||
| 37 | foreach ($container->findTaggedServiceIds('nelmio_api_doc.extractor.annotations_provider') as $id => $attributes) { |
||
|
|
|||
| 38 | $annotationProviders[] = new Reference($id); |
||
| 39 | } |
||
| 40 | $container |
||
| 41 | ->getDefinition('kreta_simple_api_doc.extractor.api_doc_extractor') |
||
| 42 | ->replaceArgument(5, $handlers); |
||
| 43 | $container |
||
| 44 | ->getDefinition('kreta_simple_api_doc.extractor.api_doc_extractor') |
||
| 45 | ->replaceArgument(6, $annotationProviders); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.