| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | 22 | public function onKernelController(FilterControllerEvent $event): void |
|
| 35 | { |
||
| 36 | 22 | $responseSchemaValidator = $this->getResponseSchemaValidator($event->getController()); |
|
| 37 | |||
| 38 | 22 | if (!$responseSchemaValidator instanceof ResponseSchemaValidator) { |
|
| 39 | 16 | return; |
|
| 40 | } |
||
| 41 | |||
| 42 | 6 | $event->getRequest()->attributes->set(static::ATTRIBUTE_RESPONSE_SCHEMAS, $responseSchemaValidator->getSchemas()); |
|
| 43 | 6 | } |
|
| 65 |