*/ class GameController extends AbstractController { public function __construct( #[Autowire(env: 'APP_ENV')] private readonly string $env, ) { } /** * It is the homepage * * @return Response */ public function index(): Response { return $this->render('Game/index.html.twig'); } /** * It is the game itself * * @param Request $request * * @return Response */ public function play(Request $request): Response { return $this->render('Game/play.html.twig', array( 'env' => $this->env, 'ssl' => $request->isSecure() ? 'true' : 'false', )); } /** * It is the Privacy & Policy * * @return Response */ public function privacy(): Response { return $this->render('Official/privacy.html.twig'); } /** * It is the Terms of Use * * @return Response */ public function terms(): Response { return $this->render('Official/terms.html.twig'); } /** * It is the contact informations * * @return Response */ public function contact(): Response { return $this->render('Official/contact.html.twig'); } /** * It is a landing page * * @return Response */ public function landing(): Response { return $this->render('Official/landing.html.twig'); } }