Private
Public Access
1
0

ssl handling #22 && reconnection issues #20, #21

This commit is contained in:
2016-11-30 20:15:56 +01:00
parent e6264c4eb0
commit 50b3663889
10 changed files with 199 additions and 57 deletions

View File

@@ -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'
));
}