public function SerializerAwareEncoder::setSerializer

Sets the owning Serializer object

Parameters

SerializerInterface $serializer:

Overrides SerializerAwareInterface::setSerializer

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/SerializerAwareEncoder.php, line 29

Class

SerializerAwareEncoder
SerializerAware Encoder implementation

Namespace

Symfony\Component\Serializer\Encoder

Code

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