chg: dev: refactor classes and reformat some layout #3
This commit is contained in:
@@ -1,41 +1,88 @@
|
||||
<?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\Controller;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class GameController extends Controller
|
||||
/**
|
||||
* Class GameController
|
||||
*
|
||||
* @package App\Controller
|
||||
* @author system7 <https://www.splendidbear.org>
|
||||
*/
|
||||
class GameController extends AbstractController
|
||||
{
|
||||
public function index()
|
||||
/**
|
||||
* It is the homepage
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('Game/index.html.twig');
|
||||
}
|
||||
|
||||
public function play(Request $request)
|
||||
/**
|
||||
* 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->container->getParameter('kernel.environment'),
|
||||
'env' => getenv('APP_ENV'),
|
||||
'ssl' => $request->isSecure() ? 'true' : 'false'
|
||||
));
|
||||
}
|
||||
|
||||
public function privacy()
|
||||
/**
|
||||
* It is the Privacy & Policy
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function privacy(): Response
|
||||
{
|
||||
return $this->render('Official/privacy.html.twig');
|
||||
}
|
||||
|
||||
public function terms()
|
||||
/**
|
||||
* It is the Terms of Use
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function terms(): Response
|
||||
{
|
||||
return $this->render('Official/terms.html.twig');
|
||||
}
|
||||
|
||||
public function contact()
|
||||
/**
|
||||
* It is the contact informations
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function contact(): Response
|
||||
{
|
||||
return $this->render('Official/contact.html.twig');
|
||||
}
|
||||
|
||||
public function landing()
|
||||
/**
|
||||
* It is a landing page
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function landing(): Response
|
||||
{
|
||||
return $this->render('Official/landing.html.twig');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user