public function SerializerAwareNormalizer::setSerializer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/SerializerAwareNormalizer.php \Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer::setSerializer()
Sets the owning Serializer object.
Parameters
SerializerInterface $serializer:
Overrides SerializerAwareInterface::setSerializer
File
- vendor/
symfony/ serializer/ Normalizer/ SerializerAwareNormalizer.php, line 32
Class
- SerializerAwareNormalizer
- SerializerAware Normalizer implementation.
Namespace
Symfony\Component\Serializer\NormalizerCode
public function setSerializer(SerializerInterface $serializer) {
$this->serializer = $serializer;
}