UserManager.php 1023B

12345678910111213141516171819202122232425262728293031323334
  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\CouchDocument;
  11. use Doctrine\ODM\CouchDB\DocumentManager;
  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 $dm;
  22. public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, DocumentManager $dm, $class)
  23. {
  24. parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer, $dm, $class);
  25. $this->dm = $dm;
  26. }
  27. }