wip: refactor

This commit is contained in:
Björn Fromme
2026-03-16 11:59:09 +01:00
parent e75276ed88
commit 86e4866d6a
21 changed files with 395 additions and 110 deletions
@@ -33,7 +33,7 @@ class CreateStep1Controller extends AbstractController
public function index(Request $request): Response
{
$bookingCreateDto = $this->bookingService->getOrCreateBookingCreateDto($request);
$participantsCount = $this->bookingService->getParticipantsCount($bookingCreateDto->roomSelections, $bookingCreateDto->travelData);
$participantsCount = $this->bookingService->getParticipantsCount($bookingCreateDto->roomSelections, $bookingCreateDto->travel);
// Validate step access - allow step 1 or redirect to current step
$this->validateStepAccess($bookingCreateDto, 1);
@@ -112,7 +112,7 @@ class CreateStep2Controller extends AbstractController
{
return $this
->bookingService
->getParticipantsCount($bookingCreateDto->roomSelections, $bookingCreateDto->travelData);
->getParticipantsCount($bookingCreateDto->roomSelections, $bookingCreateDto->travel);
}
private function ensureCorrectNumberOfParticipants(BookingCreateDto $bookingCreateDto): void