UserManager.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\UserBundle\Document;
  11. use FOS\UserBundle\Document\UserManager as BaseUserManager;
  12. use Sonata\DatagridBundle\Pager\PagerInterface;
  13. use Sonata\UserBundle\Model\UserManagerInterface;
  14. /**
  15. * @author Hugo Briand <briand@ekino.com>
  16. */
  17. class UserManager extends BaseUserManager implements UserManagerInterface
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function findUsersBy(array $criteria = null, array $orderBy = null, $limit = null, $offset = null)
  23. {
  24. return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
  25. }
  26. /**
  27. * @param array $criteria
  28. * @param int $page
  29. * @param int $limit
  30. * @param array $sort
  31. *
  32. * @return PagerInterface
  33. */
  34. public function getPager(array $criteria, $page, $limit = 10, array $sort = array())
  35. {
  36. new \RuntimeException('method not implemented');
  37. }
  38. }