1 | <?php |
||
17 | final class CompleteOrderAction |
||
18 | { |
||
19 | /** |
||
20 | * @var ViewHandlerInterface |
||
21 | */ |
||
22 | private $viewHandler; |
||
23 | |||
24 | /** |
||
25 | * @var CommandBus |
||
26 | */ |
||
27 | private $bus; |
||
28 | |||
29 | /** |
||
30 | * @var TokenStorageInterface |
||
31 | */ |
||
32 | private $tokenStorage; |
||
33 | |||
34 | /** |
||
35 | * @param ViewHandlerInterface $viewHandler |
||
36 | * @param CommandBus $bus |
||
37 | * @param TokenStorageInterface $tokenStorage |
||
38 | */ |
||
39 | public function __construct(ViewHandlerInterface $viewHandler, CommandBus $bus, TokenStorageInterface $tokenStorage) |
||
45 | |||
46 | /** |
||
47 | * @param Request $request |
||
48 | * |
||
49 | * @return Response |
||
50 | */ |
||
51 | public function __invoke(Request $request) |
||
63 | |||
64 | /** |
||
65 | * @param Request $request |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | private function provideUserEmail(Request $request) |
||
79 | } |
||
80 |