Commit b977d9f1 authored by Mat's avatar Mat

le template de messageAction

parent 24d407da
......@@ -2,17 +2,22 @@
namespace SocketBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
class ChatController extends Controller
{
// on peut mettre ça aussi dans les annotations
// * @Security("has_role('ROLE_ADMIN')")
/**
* @Route(name="chat_message", path="/chat")
*/
public function messageAction()
{
return $this->render('@Socket/Chat/message.html.twig');
}
}
{% extends "base.html.twig" %}
{% block layout %}
Hello World!
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment