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 | * @var CurrentUserProviderInterface |
||
47 | */ |
||
48 | private $currentUserProvider; |
||
49 | |||
50 | /** |
||
51 | * @param ViewHandlerInterface $viewHandler |
||
52 | * @param CommandBus $bus |
||
53 | * @param ValidatorInterface $validator |
||
54 | * @param ValidationErrorViewFactoryInterface $validationErrorViewFactory |
||
55 | * @param TokenStorage $tokenStorage |
||
56 | * @param CurrentUserProviderInterface $currentUserProvider |
||
57 | */ |
||
58 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @param Request $request |
||
76 | * |
||
77 | * @return Response |
||
78 | */ |
||
79 | public function __invoke(Request $request): Response |
||
95 | } |
||
96 |