Skip to content

Added a note about controller arguments #9235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ Great! Next, add the logic to ``loginAction()`` that displays the login form::
));
}

.. note::

If you get an error that the ``$authUtils`` argument is missing, it's
probably because you need to activate this new feature in Symfony 3.4. See
this :ref:`controller service argument note <controller-service-arguments-tag>`.

Don't let this controller confuse you. As you'll see in a moment, when the
user submits the form, the security system automatically handles the form
submission for you. If the user submits an invalid username or password,
Expand Down