Skip to content

Fixed a merge issue #9432

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
Mar 13, 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
16 changes: 3 additions & 13 deletions security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,7 @@ Great! Next, add the logic to ``login()`` that displays the login form::
// src/Controller/SecurityController.php
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;

<<<<<<< HEAD
public function login(Request $request, AuthenticationUtils $authUtils)
=======
public function loginAction(Request $request, AuthenticationUtils $authenticationUtils)
>>>>>>> 3.4
public function login(Request $request, AuthenticationUtils $authenticationUtils)
{
// get the login error if there is one
$error = $authenticationUtils->getLastAuthenticationError();
Expand All @@ -164,16 +160,10 @@ Great! Next, add the logic to ``login()`` that displays the login form::

.. note::

<<<<<<< HEAD
If you get an error that the ``$authUtils`` argument is missing, it's
probably because the controllers of your application are not defined as
If you get an error that the ``$authenticationUtils`` argument is missing,
it's probably because the controllers of your application are not defined as
services and tagged with the ``controller.service_arguments`` tag, as done
in the :ref:`default services.yaml configuration <service-container-services-load-example>`.
=======
If you get an error that the ``$authenticationUtils`` 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>`.
>>>>>>> 3.4

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
Expand Down