Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __invoke(string $postId, Request $request): Response |
||
16 | { |
||
17 | $this->bus->addHandler(UpdatePostCommand::class, UpdatePostCommandHandler::class); |
||
18 | |||
19 | $this->bus->dispatch( |
||
20 | new UpdatePostCommand( |
||
21 | $postId, |
||
22 | $request->get('title'), |
||
|
|||
23 | $request->get('content') |
||
24 | ) |
||
25 | ); |
||
26 | |||
27 | return Response::create(null, Response::HTTP_OK); |
||
28 | } |
||
30 |