bookingRepository->findOneBy(['uuid' => $uuid]); if (null === $booking || false === $this->linkSigner->isValidLinkRequest($request, $booking)) { return $this->render('groups/offer/unavailable.html.twig'); } if (!$this->isCustomerVisible($booking)) { return $this->render('groups/offer/unavailable.html.twig'); } $this->linkSigner->authorizeSession($request, $booking); return new RedirectResponse($this->generateUrl('app_groups_offer_view', ['uuid' => $uuid])); } }