From 90757713e68713eeb3bd42726e852419a29002f0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 9 Feb 2018 15:32:53 +0100 Subject: [PATCH] Added a note about controller arguments --- security/form_login_setup.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/security/form_login_setup.rst b/security/form_login_setup.rst index 0b42293784d..39abab6fbe3 100644 --- a/security/form_login_setup.rst +++ b/security/form_login_setup.rst @@ -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 `. + 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,