title: A non-existent service "form.csrf_provider" requested
body: <p>I have made changes in security.yml file as </p>
  
  <blockquote>
    <p>csrf_provider to csrf_token_generator in security.yml</p>
  </blockquote>
  
  <p>But when I accessing the csrf from controller like this</p>
  
  <pre><code>$csrfToken = $this-&gt;container-&gt;get('form.csrf_provider')-&gt;generateCsrfToken('authenticate');
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$csrfToken = $this-&gt;container-&gt;get('form.csrf_token_generator')-&gt;generateCsrfToken('authenticate');
  </code></pre>
  
  <p>But the issue remain same.</p>
  
  <p>Please tell me how to solve this issue.
  Thanks in advance!</p>