1 | <?php |
||
21 | final class UpdateCustomerAction |
||
22 | { |
||
23 | /** |
||
24 | * @var ViewHandlerInterface |
||
25 | */ |
||
26 | private $viewHandler; |
||
27 | |||
28 | /** |
||
29 | * @var ValidatorInterface |
||
30 | */ |
||
31 | private $validator; |
||
32 | |||
33 | /** |
||
34 | * @var CommandBus |
||
35 | */ |
||
36 | private $bus; |
||
37 | |||
38 | /** |
||
39 | * @var ValidationErrorViewFactoryInterface |
||
40 | */ |
||
41 | private $validationErrorViewFactory; |
||
42 | |||
43 | /** |
||
44 | * @var CustomerViewFactoryInterface |
||
45 | */ |
||
46 | private $customerViewFactory; |
||
47 | |||
48 | /** |
||
49 | * @var CustomerRepositoryInterface |
||
50 | */ |
||
51 | private $customerRepository; |
||
52 | |||
53 | /** |
||
54 | * @var TokenStorageInterface |
||
55 | */ |
||
56 | private $tokenStorage; |
||
57 | |||
58 | /** |
||
59 | * @param ViewHandlerInterface $viewHandler |
||
60 | * @param ValidatorInterface $validator |
||
61 | * @param CommandBus $bus |
||
62 | * @param ValidationErrorViewFactoryInterface $validationErrorViewFactory |
||
63 | * @param CustomerViewFactoryInterface $customerViewFactory |
||
64 | * @param CustomerRepositoryInterface $customerRepository |
||
65 | * @param TokenStorageInterface $tokenStorage |
||
66 | */ |
||
67 | public function __construct( |
||
84 | |||
85 | /** |
||
86 | * @param Request $request |
||
87 | * |
||
88 | * @return Response |
||
89 | */ |
||
90 | public function __invoke(Request $request): Response |
||
114 | } |
||
115 |