UserManager.php 1004 B

123456789101112131415161718192021222324252627282930313233
  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\Entity;
  11. use Doctrine\ORM\EntityManager;
  12. use FOS\UserBundle\Doctrine\UserManager as BaseUserManager;
  13. use FOS\UserBundle\Util\CanonicalizerInterface;
  14. use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
  15. /**
  16. * BC class for people extending it in their bundle.
  17. * TODO Remove this class on July 31st
  18. */
  19. class UserManager extends BaseUserManager
  20. {
  21. protected $em;
  22. public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, EntityManager $em, $class)
  23. {
  24. parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer, $em, $class);
  25. $this->em = $em;
  26. }
  27. }