| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __invoke(Request $request): Response |
||
| 16 | { |
||
| 17 | $this->bus->addHandler(CreateResponseCommand::class, CreateResponseCommandHandler::class); |
||
| 18 | |||
| 19 | $this->bus->dispatch( |
||
| 20 | new CreateResponseCommand( |
||
| 21 | $request->get('id'), |
||
|
|
|||
| 22 | $request->get('post_id'), |
||
| 23 | $request->get('author_id'), |
||
| 24 | $request->get('content') |
||
| 25 | ) |
||
| 26 | ); |
||
| 27 | |||
| 28 | return Response::create(null, Response::HTTP_CREATED); |
||
| 29 | } |
||
| 31 |