new: usr: add mineseeker game to the symfony 4 project #3
This commit is contained in:
42
src/Controller/GameController.php
Normal file
42
src/Controller/GameController.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user