Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
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(CreateRateCommand::class, CreateRateCommandHandler::class); |
||
18 | |||
19 | $this->bus->dispatch( |
||
20 | new CreateRateCommand( |
||
21 | $postId, |
||
22 | $request->get('like') |
||
|
|||
23 | ) |
||
24 | ); |
||
25 | |||
26 | return Response::create(null, Response::HTTP_OK); |
||
27 | } |
||
29 |