Commit 24d407da authored by Mat's avatar Mat

on crée notre controller

parent 9699dc66
<?php
namespace SocketBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
class ChatController extends Controller
{
/**
* @Route(name="chat_message", path="/chat")
*/
public function messageAction()
{
}
}
<?php
namespace SocketBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class DefaultController extends Controller
{
/**
*
* @Route("/{name}", name="homepage" )
*/
public function indexAction(AuthenticationUtils $utils, Request $request, $name)
{
return $this->render('SocketBundle:Default:index.html.twig');
}
}
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