| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function process(ContainerBuilder $container) |
||
| 15 | { |
||
| 16 | $formatConstraintDefinition = $container->getDefinition('swagger.json_schema.constraints.format'); |
||
| 17 | |||
| 18 | $services = $container->findTaggedServiceIds('swagger.format_validator'); |
||
| 19 | foreach ($services as $serviceId => $tags) { |
||
| 20 | foreach ($tags as $attributes) { |
||
| 21 | $formatConstraintDefinition->addMethodCall('addFormatValidator', [$attributes['format'], new Reference($serviceId)]); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 | } |
||
| 26 |