Skip to content

Commit 9ae3f82

Browse files
authored
Added tip to enable CsrfTokenManager as service
in the framework configuration file as it is required for autowiring on the ExampleFormAuthenticator constructor
1 parent 55a4254 commit 9ae3f82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security/guard_authentication.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ service to be passed) and add the following logic::
519519

520520
// ...
521521
}
522+
523+
.. tip::
524+
525+
  Don't forget to enable `csrf_protection` in the `config/framework.yml` file that
526+
CsrfTokenManagerInterface can get autowired.
522527

523528
Frequently Asked Questions
524529
--------------------------

0 commit comments

Comments
 (0)