@@ 79-88 (lines=10) @@ | ||
76 | * |
|
77 | * @throws HttpException |
|
78 | */ |
|
79 | public function changeProductQuantityAction(Request $request): Response |
|
80 | { |
|
81 | $this->tryToHandleCommand(ChangeProductQuantity::create( |
|
82 | $request->request->get('cartId'), |
|
83 | $request->request->get('productCode'), |
|
84 | (int) $request->request->get('quantity') |
|
85 | )); |
|
86 | ||
87 | return new Response(); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @param Request $request |
|
@@ 97-105 (lines=9) @@ | ||
94 | * |
|
95 | * @throws HttpException |
|
96 | */ |
|
97 | public function removeProductAction(Request $request): Response |
|
98 | { |
|
99 | $this->tryToHandleCommand(RemoveProductFromCart::create( |
|
100 | $request->request->get('cartId'), |
|
101 | $request->request->get('productCode') |
|
102 | )); |
|
103 | ||
104 | return new Response(); |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @param Request $request |