[CS][DX] Refactor

This commit is contained in:
Sylius Bot 2024-11-21 02:28:32 +00:00 committed by GitHub
parent 77ec22dfc9
commit 2feda6214f

View file

@ -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();