@@ -3,6 +3,7 @@
|
||||
namespace Mine\SeekerBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class GameController extends Controller
|
||||
{
|
||||
@@ -11,10 +12,11 @@ class GameController extends Controller
|
||||
return $this->render('MineSeekerBundle:Game:index.html.twig');
|
||||
}
|
||||
|
||||
public function playAction()
|
||||
public function playAction(Request $request)
|
||||
{
|
||||
return $this->render('MineSeekerBundle:Game:play.html.twig', array(
|
||||
'env' => $this->container->getParameter('kernel.environment')
|
||||
'env' => $this->container->getParameter('kernel.environment'),
|
||||
'ssl' => $request->isSecure() ? 'true' : 'false'
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user