Private
Public Access
1
0
Files
MineSeeker/src/Controller/GameController.php

90 lines
1.9 KiB
PHP
Raw Normal View History

<?php
/**
* This file is part of the SplendidBear Websites' projects.
*
* Copyright (c) 2019 @ www.splendidbear.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class GameController
*
* @package App\Controller
* @author system7 <https://www.splendidbear.org>
*/
class GameController extends AbstractController
{
/**
* 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' => getenv('APP_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');
}
}