Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1fe443

Browse filesBrowse files
committed
Merge branch '4.0'
* 4.0: Fixed a merge issue
2 parents 504ea87 + b64b501 commit f1fe443
Copy full SHA for f1fe443

File tree

Expand file treeCollapse file tree

1 file changed

+3
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-13
lines changed

‎security/form_login_setup.rst

Copy file name to clipboardExpand all lines: security/form_login_setup.rst
+3-13Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ Great! Next, add the logic to ``login()`` that displays the login form::
144144
// src/Controller/SecurityController.php
145145
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
146146

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)
152148
{
153149
// get the login error if there is one
154150
$error = $authenticationUtils->getLastAuthenticationError();
@@ -164,16 +160,10 @@ Great! Next, add the logic to ``login()`` that displays the login form::
164160

165161
.. note::
166162

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
170165
services and tagged with the ``controller.service_arguments`` tag, as done
171166
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
177167

178168
Don't let this controller confuse you. As you'll see in a moment, when the
179169
user submits the form, the security system automatically handles the form

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.