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 | * CreateAddressAction constructor. |
||
41 | * |
||
42 | * @param ViewHandlerInterface $viewHandler |
||
43 | * @param CommandBus $bus |
||
44 | * @param ValidatorInterface $validator |
||
45 | * @param ValidationErrorViewFactoryInterface $validationErrorViewFactory |
||
46 | */ |
||
47 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * @param Request $request |
||
61 | * |
||
62 | * @return Response |
||
63 | */ |
||
64 | public function __invoke(Request $request): Response |
||
78 | } |
||
79 |