add new websocket topic - userList - and handle it
This commit is contained in:
@@ -33,14 +33,24 @@ class GameController extends Controller
|
||||
// dump($response->getErrorExplanation());
|
||||
// }
|
||||
|
||||
return $this->render('MineSeekerBundle:Game:index.html.twig');
|
||||
return $this->render('MineSeekerBundle:Game:index.html.twig', array(
|
||||
'env' => $this->container->getParameter('kernel.environment'),
|
||||
));
|
||||
}
|
||||
|
||||
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'
|
||||
'ssl' => $request->isSecure() ? 'true' : 'false',
|
||||
));
|
||||
}
|
||||
|
||||
public function rePlayAction(Request $request)
|
||||
{
|
||||
return $this->render('MineSeekerBundle:Game:play.html.twig', array(
|
||||
'env' => $this->container->getParameter('kernel.environment'),
|
||||
'ssl' => $request->isSecure() ? 'true' : 'false',
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user