SerializerAwareNormalizer.php 780 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Symfony\Component\Serializer\Normalizer;
  3. use Symfony\Component\Serializer\SerializerInterface;
  4. use Symfony\Component\Serializer\SerializerAwareInterface;
  5. /*
  6. * This file is part of the Symfony framework.
  7. *
  8. * (c) Fabien Potencier <fabien@symfony.com>
  9. *
  10. * This source file is subject to the MIT license that is bundled
  11. * with this source code in the file LICENSE.
  12. */
  13. /**
  14. * SerializerAware Normalizer implementation
  15. *
  16. * @author Jordi Boggiano <j.boggiano@seld.be>
  17. */
  18. abstract class SerializerAwareNormalizer implements SerializerAwareInterface, NormalizerInterface
  19. {
  20. protected $serializer;
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function setSerializer(SerializerInterface $serializer)
  25. {
  26. $this->serializer = $serializer;
  27. }
  28. }