UserSerializerHandler.php 601 B

12345678910111213141516171819202122232425262728
  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\Serializer;
  11. use Sonata\CoreBundle\Serializer\BaseSerializerHandler;
  12. /**
  13. * @author Sylvain Deloux <sylvain.deloux@ekino.com>
  14. */
  15. class UserSerializerHandler extends BaseSerializerHandler
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function getType()
  21. {
  22. return 'sonata_user_user_id';
  23. }
  24. }