Commit 1d14a5b8 authored by Mat's avatar Mat

modif config, rétabli l'accès aux autres pages du site

parent 4ac68c6c
...@@ -119,11 +119,11 @@ jms_serializer: ...@@ -119,11 +119,11 @@ jms_serializer:
fos_rest: fos_rest:
body_converter: body_converter:
enabled: true enabled: true
zone:
- { path: "^/API" }
format_listener: format_listener:
rules: rules:
path: ^/API - { path: "^/API", priorities: [json], fallback_format: 'json' }
priorities: [json]
fallback_format: 'json'
view: view:
view_response_listener: true view_response_listener: true
failed_validation: HTTP_BAD_REQUEST failed_validation: HTTP_BAD_REQUEST
\ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace SocketBundle\Controller; namespace SocketBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use SocketBundle\Entity\User; use SocketBundle\Entity\User;
use SocketBundle\Form\UserType; use SocketBundle\Form\UserType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller;
...@@ -72,6 +73,7 @@ class ChatController extends Controller ...@@ -72,6 +73,7 @@ class ChatController extends Controller
/** /**
* @Route(name="chat_message", path="/socket/chat") * @Route(name="chat_message", path="/socket/chat")
* @Security("has_role('ROLE_USER')")
*/ */
public function messageAction() public function messageAction()
{ {
......
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