@@ -144,11 +144,7 @@ Great! Next, add the logic to ``login()`` that displays the login form::
144
144
// src/Controller/SecurityController.php
145
145
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
146
146
147
- <<<<<<< HEAD
148
- public function login(Request $request, AuthenticationUtils $authUtils)
149
- =======
150
- public function loginAction(Request $request, AuthenticationUtils $authenticationUtils)
151
- >>>>>>> 3.4
147
+ public function login(Request $request, AuthenticationUtils $authenticationUtils)
152
148
{
153
149
// get the login error if there is one
154
150
$error = $authenticationUtils->getLastAuthenticationError();
@@ -164,16 +160,10 @@ Great! Next, add the logic to ``login()`` that displays the login form::
164
160
165
161
.. note ::
166
162
167
- <<<<<<< HEAD
168
- If you get an error that the ``$authUtils `` argument is missing, it's
169
- probably because the controllers of your application are not defined as
163
+ If you get an error that the ``$authenticationUtils `` argument is missing,
164
+ it's probably because the controllers of your application are not defined as
170
165
services and tagged with the ``controller.service_arguments `` tag, as done
171
166
in the :ref: `default services.yaml configuration <service-container-services-load-example >`.
172
- =======
173
- If you get an error that the ``$authenticationUtils `` argument is missing,
174
- it's probably because you need to activate this new feature in Symfony 3.4.
175
- See this :ref: `controller service argument note <controller-service-arguments-tag >`.
176
- >>>>>>> 3.4
177
167
178
168
Don't let this controller confuse you. As you'll see in a moment, when the
179
169
user submits the form, the security system automatically handles the form
0 commit comments