mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[CS][DX] Refactor
This commit is contained in:
parent
77ec22dfc9
commit
2feda6214f
1 changed files with 8 additions and 4 deletions
|
|
@ -110,10 +110,14 @@ class AddToCartFormComponent
|
|||
/** @param array<string, mixed> $routeParameters */
|
||||
#[LiveAction]
|
||||
public function addToCart(
|
||||
#[LiveArg] ?string $routeName = null,
|
||||
#[LiveArg] array $routeParameters = [],
|
||||
#[LiveArg] ?string $idRouteParameter = null,
|
||||
#[LiveArg] bool $addFlashMessage = true,
|
||||
#[LiveArg]
|
||||
?string $routeName = null,
|
||||
#[LiveArg]
|
||||
array $routeParameters = [],
|
||||
#[LiveArg]
|
||||
?string $idRouteParameter = null,
|
||||
#[LiveArg]
|
||||
bool $addFlashMessage = true,
|
||||
): RedirectResponse {
|
||||
$this->submitForm();
|
||||
$addToCartCommand = $this->getForm()->getData();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue