Skip to content

Commit

Permalink
recommend new controller syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored and scheb committed Nov 10, 2024
1 parent 0a6efd3 commit 5bb36ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ authentication.
# config/routes/scheb_2fa.yaml
2fa_login:
path: /2fa
defaults:
# "scheb_two_factor.form_controller" references the controller service provided by the bundle.
# You don't HAVE to use it, but - except you have very special requirements - it is recommended.
_controller: "scheb_two_factor.form_controller::form"
# "scheb_two_factor.form_controller" references the controller service provided by the bundle.
# You don't HAVE to use it, but - except you have very special requirements - it is recommended.
controller: "scheb_two_factor.form_controller::form"
2fa_login_check:
path: /2fa_check
Expand Down

0 comments on commit 5bb36ba

Please sign in to comment.