Controller "Backend\ChatBundle\Controller\ChatController::indexAction" for URI "/chat/id1222" is not callable.
routing.yml:
backend_chat:
resource: "@BackendChatBundle/Controller/"
type: annotation
prefix: /chat
ChatController:
/**
* Class ChatController
* @package Backend\ChatBundle\Controller
*/
class ChatController extends BaseController
{
/**
* @Route("/id{id}", requirements={"id": "\d+"}, name="backend_chat_chat_index")
* @Security("user.id == room.getRecipient().getId() || user.id == room.getAuthor().getId()")
*/
public function indexAction(Room $room)
{
return $this->render('BackendChatBundle:Default:index.html.twig');
}