| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __invoke(Request $request): Response |
||
| 23 | { |
||
| 24 | $command = $request->attributes->get('_command'); |
||
| 25 | if ($command === null) { |
||
| 26 | throw new \InvalidArgumentException('No _command argument found for action'); |
||
| 27 | } |
||
| 28 | $this->commandBus->handle($command); |
||
| 29 | |||
| 30 | return new Response('', $this->getResponseStatusCode($request)); |
||
| 31 | } |
||
| 32 | |||
| 52 |