43 lines
948 B
PHP
43 lines
948 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Controller;
|
||
|
|
|
||
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||
|
|
use Symfony\Component\HttpFoundation\Request;
|
||
|
|
|
||
|
|
class GameController extends Controller
|
||
|
|
{
|
||
|
|
public function index()
|
||
|
|
{
|
||
|
|
return $this->render('Game/index.html.twig');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function play(Request $request)
|
||
|
|
{
|
||
|
|
return $this->render('Game/play.html.twig', array(
|
||
|
|
'env' => $this->container->getParameter('kernel.environment'),
|
||
|
|
'ssl' => $request->isSecure() ? 'true' : 'false'
|
||
|
|
));
|
||
|
|
}
|
||
|
|
|
||
|
|
public function privacy()
|
||
|
|
{
|
||
|
|
return $this->render('Official/privacy.html.twig');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function terms()
|
||
|
|
{
|
||
|
|
return $this->render('Official/terms.html.twig');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function contact()
|
||
|
|
{
|
||
|
|
return $this->render('Official/contact.html.twig');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function landing()
|
||
|
|
{
|
||
|
|
return $this->render('Official/landing.html.twig');
|
||
|
|
}
|
||
|
|
}
|