1 | <?php |
||
17 | final class CreateAddressAction |
||
18 | { |
||
19 | /** |
||
20 | * @var ViewHandlerInterface |
||
21 | */ |
||
22 | private $viewHandler; |
||
23 | |||
24 | /** |
||
25 | * @var CommandBus |
||
26 | */ |
||
27 | private $bus; |
||
28 | |||
29 | /** |
||
30 | * @var ValidatorInterface |
||
31 | */ |
||
32 | private $validator; |
||
33 | |||
34 | /** |
||
35 | * @var ValidationErrorViewFactoryInterface |
||
36 | */ |
||
37 | private $validationErrorViewFactory; |
||
38 | |||
39 | /** |
||
40 | * @param ViewHandlerInterface $viewHandler |
||
41 | * @param CommandBus $bus |
||
42 | * @param ValidatorInterface $validator |
||
43 | * @param ValidationErrorViewFactoryInterface $validationErrorViewFactory |
||
44 | */ |
||
45 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param Request $request |
||
59 | * |
||
60 | * @return Response |
||
61 | */ |
||
62 | public function __invoke(Request $request): Response |
||
76 | } |
||
77 |