Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
a78e1e99
Commit
a78e1e99
authored
Jul 03, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
il cherchait la route /login, et c'était /socket/login
parent
41b8c324
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
app/config/routing.yml
app/config/routing.yml
+1
-1
app/config/security.yml
app/config/security.yml
+2
-2
src/SocketBundle/Controller/ChatController.php
src/SocketBundle/Controller/ChatController.php
+4
-3
No files found.
app/config/routing.yml
View file @
a78e1e99
socket
:
resource
:
"
@SocketBundle/Controller/"
type
:
annotation
prefix
:
/
socket
prefix
:
/
logout
:
path
:
/logout
...
...
app/config/security.yml
View file @
a78e1e99
...
...
@@ -32,14 +32,14 @@ security:
anonymous
:
false
# un anonyme n'aura accès qu'aux pages login et register
form_login
:
login_path
:
/
login
login_path
:
login
check_path
:
login-check
# une route ou un chemin
default_target_path
:
/chat
# ce sera souvent la page d'accueil
always_use_default_target_path
:
true
logout
:
path
:
logout
target
:
/
login
target
:
login
src/SocketBundle/Controller/ChatController.php
View file @
a78e1e99
...
...
@@ -9,11 +9,11 @@ use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class
ChatController
extends
Controller
{
// on peut mettre ça aussi dans les annotations
// * @Security("has_role('ROLE_ADMIN')")
// on peut mettre ça aussi dans les annotations
// * @Security("has_role('ROLE_ADMIN')")
/**
* @Route(name="chat_message", path="/chat")
* @Route(name="chat_message", path="/
socket/
chat")
*/
public
function
messageAction
()
{
...
...
@@ -21,6 +21,7 @@ class ChatController extends Controller
return
$this
->
render
(
'@Socket/Chat/message.html.twig'
);
}
/**
* @Route(name="login", path="/login")
* @param AuthenticationUtils $utils
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment