EmailUserProvider.php 511 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. * This file is part of the FOSUserBundle package.
  4. *
  5. * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace FOS\UserBundle\Security;
  11. class EmailUserProvider extends UserProvider
  12. {
  13. /**
  14. * {@inheritDoc}
  15. */
  16. protected function findUser($username)
  17. {
  18. return $this->userManager->findUserByUsernameOrEmail($username);
  19. }
  20. }