bookingRepository->findOneBy(['uuid' => $uuid]); if (null === $booking || false === $this->linkSigner->isValidLinkRequest($request, $booking)) { return $this->render('groups/booking/offer_unavailable.html.twig'); } if ($request->isMethod(Request::METHOD_POST) && $booking->isInquiry()) { $this->bookingService->acceptBooking($booking); return new RedirectResponse($request->getUri()); } return $this->render('groups/booking/offer.html.twig', [ 'booking' => $booking, 'priceBreakdown' => $this->breakdownCalculator->compute($booking), ]); } }