28 lines
716 B
PHP
28 lines
716 B
PHP
<?php
|
|
|
|
namespace Mine\SeekerBundle\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
class GameController extends Controller
|
|
{
|
|
public function indexAction()
|
|
{
|
|
return $this->render('MineSeekerBundle:Game:index.html.twig');
|
|
}
|
|
|
|
public function playAction(Request $request)
|
|
{
|
|
return $this->render('MineSeekerBundle:Game:play.html.twig', array(
|
|
'env' => $this->container->getParameter('kernel.environment'),
|
|
'ssl' => $request->isSecure() ? 'true' : 'false'
|
|
));
|
|
}
|
|
|
|
public function listAction()
|
|
{
|
|
return $this->render('MineSeekerBundle:Game:list.html.twig');
|
|
}
|
|
}
|