title: loadUserByUsername with additional parameters in Symfony2
body: <p>I have implemented custom authentication provider (based on <a href="http://symfony.com/doc/current/cookbook/security/custom_password_authenticator.html" rel="nofollow">Custom Password Authenticator</a>) and the thing is that loadUserByUsername (email) method accepts only one parameter. I need one extra there to check if this user belongs to the company ID (taken from the url parameter), because the client can be registered to multiple companies with one email address.</p>
  
  <p>How can I achieve that? </p>