1 | <?php |
||
19 | final class CreateAddressAction |
||
20 | { |
||
21 | /** |
||
22 | * @var ViewHandlerInterface |
||
23 | */ |
||
24 | private $viewHandler; |
||
25 | |||
26 | /** |
||
27 | * @var CommandBus |
||
28 | */ |
||
29 | private $bus; |
||
30 | |||
31 | /** |
||
32 | * @var ValidatorInterface |
||
33 | */ |
||
34 | private $validator; |
||
35 | |||
36 | /** |
||
37 | * @var ValidationErrorViewFactoryInterface |
||
38 | */ |
||
39 | private $validationErrorViewFactory; |
||
40 | |||
41 | /** |
||
42 | * @var TokenStorage |
||
43 | */ |
||
44 | private $tokenStorage; |
||
45 | |||
46 | /** |
||
47 | * @param ViewHandlerInterface $viewHandler |
||
48 | * @param CommandBus $bus |
||
49 | * @param ValidatorInterface $validator |
||
50 | * @param ValidationErrorViewFactoryInterface $validationErrorViewFactory |
||
51 | * @param TokenStorage $tokenStorage |
||
52 | */ |
||
53 | public function __construct( |
||
66 | |||
67 | /** |
||
68 | * @param Request $request |
||
69 | * |
||
70 | * @return Response |
||
71 | */ |
||
72 | public function __invoke(Request $request): Response |
||
89 | } |
||
90 |