public function CustomNormalizer::normalize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/CustomNormalizer.php \Symfony\Component\Serializer\Normalizer\CustomNormalizer::normalize()
Normalizes an object into a set of arrays/scalars.
Parameters
object $object object to normalize:
string $format format the normalization result will be encoded as:
array $context Context options for the normalizer:
Return value
array|string|bool|int|float|null
Overrides NormalizerInterface::normalize
File
- vendor/
symfony/ serializer/ Normalizer/ CustomNormalizer.php, line 22
Class
- CustomNormalizer
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Symfony\Component\Serializer\NormalizerCode
public function normalize($object, $format = null, array $context = array()) {
return $object
->normalize($this->serializer, $format, $context);
}