wip: refactor forms
This commit is contained in:
1 parent
8da77ee13b
commit
1f5877460b
5 files changed
+54
-29
No files matched your search
@@ -18,9 +18,6 @@ trait BookingCreateTrait
|
||||
{
|
||||
/**
|
||||
* Validates step access and redirects if necessary.
|
||||
*
|
||||
* @param BookingCreateDto $bookingCreateDto
|
||||
* @param int $expectedStep
|
||||
*/
|
||||
private function validateStepAccess(BookingCreateDto $bookingCreateDto, int $expectedStep): void
|
||||
{
|
||||
@@ -34,8 +31,6 @@ trait BookingCreateTrait
|
||||
|
||||
/**
|
||||
* Redirects to the current step based on the DTO's currentStep.
|
||||
*
|
||||
* @param BookingCreateDto $bookingCreateDto
|
||||
*/
|
||||
private function redirectToCurrentStep(BookingCreateDto $bookingCreateDto): RedirectResponse
|
||||
{
|
||||
@@ -53,4 +48,4 @@ trait BookingCreateTrait
|
||||
|
||||
return $this->redirectToRoute($route, $routeParams);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user