title: How to configure a remember me aware listener in Symfony 2?
body: <p>I have implemented a <a href="http://symfony.com/doc/master/cookbook/security/custom_authentication_provider.html" rel="noreferrer">custom authentication provider</a> successfully, but now I also need to add 'remember me' functionality, and I couldn't find docs on how to do that.</p>
  
  <p>I tried adding this:</p>
  
  <pre><code>remember_me:
      key: "%secret%"
      lifetime: 31536000 # 1 year
      always_remember_me: true
  </code></pre>
  
  <p>But it says this:</p>
  
  <p><code>You must configure at least one remember-me aware listener (such as form-login) for each firewall that has remember-me enabled.</code></p>
  
  <p>I found this but I'm not sure how to use it: <code>Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider</code></p>
  
  <p>So where is the <code>RememberMeAwareInterface</code>? (I guess there is one? Like ContainerAware) And what should I do with it?</p>
  
  <p>I don't think I need to write my own implementation, the default one should work fine with my custom auth provider.</p>