title: Symfony 4 AuthenticationUtils
body: <p>I am trying to create a user login with symfony 4 based on the tutorial from symfony.com. </p>
  
  <p>I used the basic services.yaml file with the code below.</p>
  
  <p><a href="https://symfony.com/doc/current/security/form_login_setup.html" rel="noreferrer">https://symfony.com/doc/current/security/form_login_setup.html</a></p>
  
  <pre><code>public function loginAction(Request $request, \Twig_Environment $twigRenderer,AuthenticationUtils $authUtils)
  {
  
      // get the login error if there is one
      $error = $authUtils-&gt;getLastAuthenticationError();
  
      // last username entered by the user
      $lastUsername = $authUtils-&gt;getLastUsername();
  
  
      return new response($twigRenderer-&gt;render('security/login.html.twig', array(
          'last_username' =&gt; $lastUsername,
          'error'         =&gt; $error,
          )
      ));
  }
  </code></pre>
  
  <p>Errror:</p>
  
  <p>Controller "App\Controller\SecurityController::loginAction()" requires that you provide a value for the "$authUtils" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.</p>
  
  <p>I don`t know how to solve this. Does someone have a suggestion?</p>