public function SerializerAwareNormalizer::setSerializer

Sets the owning Serializer object

Parameters

SerializerInterface $serializer:

Overrides SerializerAwareInterface::setSerializer

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Normalizer/SerializerAwareNormalizer.php, line 32

Class

SerializerAwareNormalizer
SerializerAware Normalizer implementation

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function setSerializer(SerializerInterface $serializer) {
  $this->serializer = $serializer;
}