public function SerializerAwareEncoder::setSerializer in Zircon Profile 8
Same name and namespace in other branches
- 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\EncoderCode
public function setSerializer(SerializerInterface $serializer) {
$this->serializer = $serializer;
}