You are here

public function SerializerAwareEncoder::setSerializer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Encoder/SerializerAwareEncoder.php \Symfony\Component\Serializer\Encoder\SerializerAwareEncoder::setSerializer()

Sets the owning Serializer object.

Parameters

SerializerInterface $serializer:

Overrides SerializerAwareInterface::setSerializer

File

vendor/symfony/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;
}