Constants |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::CIRCULAR_REFERENCE_LIMIT_COUNTERS = 'circular_reference_limit_counters' |
Properties |
protected ?Symfony\Component\Serializer\Mapping\ClassDiscriminatorResolverInterface Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::$classDiscriminatorResolver |
protected ?Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface Symfony\Component\Serializer\Normalizer\AbstractNormalizer::$classMetadataFactory |
protected array Symfony\Component\Serializer\Normalizer\AbstractNormalizer::$defaultContext = ['allow_extra_attributes' => true, 'circular_reference_handler' => NULL, 'circular_reference_limit' => 1, 'ignored_attributes' => []] |
protected ?Symfony\Component\Serializer\NameConverter\NameConverterInterface Symfony\Component\Serializer\Normalizer\AbstractNormalizer::$nameConverter |
protected Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor |
protected $propertyInfoExtractor = NULL |
protected ?Symfony\Component\Serializer\SerializerInterface Symfony\Component\Serializer\Normalizer\AbstractNormalizer::$serializer = NULL |
Methods |
protected final Symfony\Component\Serializer\Normalizer\AbstractNormalizer::applyCallbacks(?mixed $value, object|string $object, string $attribute, ?string $format, array $context) : ?mixed |
protected final Symfony\Component\Serializer\Normalizer\AbstractNormalizer::applyFilterBool(ReflectionParameter $parameter, ?mixed $value, array $context) : ?mixed |
protected Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::createChildContext(array $parentContext, string $attribute, ?string $format) : array Overwritten to update the cache key for the child. We must not mix up the attribute cache between parent and children. |
protected Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::denormalizeParameter(ReflectionClass $class, ReflectionParameter $parameter, string $parameterName, ?mixed $parameterData, array $context, ?string $format = NULL) : ?mixed |
protected extractAttributes(object $object, ?string $format = NULL, array $context = []) : array |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::extractObjectToPopulate(string $class, array $context, ?string $key = NULL) : ?object Extract the object_to_populate field from the context if it exists
and is an instance of the provided $class.
- param string $class The class the object should be
- param string|null $key They in which to look for the object to populate.
Keeps backwards compatibility with
AbstractNormalizer .
|
protected getAllowedAttributes(object|string $classOrObject, array $context, bool $attributesAsString = false) : array|bool |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getAttributeDenormalizationContext(string $class, string $attribute, array $context) : array Computes the denormalization context merged with current one. Metadata always wins over global context, as more specific. |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getAttributeMetadata(object|string $objectOrClass, string $attribute) : ?Symfony\Component\Serializer\Mapping\AttributeMetadataInterface |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getAttributeNormalizationContext(object $object, string $attribute, array $context) : array Computes the normalization context merged with current one. Metadata always wins over global context, as more specific. |
protected Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::getAttributes(object $object, ?string $format, array $context) : array Gets and caches attributes for the given object, format and context. |
protected getAttributeValue(object $object, string $attribute, ?string $format = NULL, array $context = []) : ?mixed |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getConstructor(array $data, string $class, array $context, ReflectionClass $reflectionClass, array|bool $allowedAttributes) : ?ReflectionMethod Returns the method to use to construct an object. This method must be either
the object constructor or static. |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getGroups(array $context) : array |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::handleCircularReference(object $object, ?string $format = NULL, array $context = []) : ?mixed Handles a circular reference. If a circular reference handler is set, it will be called. Otherwise, a
{@class CircularReferenceException} will be thrown. - final
- throws \CircularReferenceException
|
protected Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::instantiateObject(array $data, string $class, array $context, ReflectionClass $reflectionClass, array|bool $allowedAttributes, ?string $format = NULL) : object |
protected isAllowedAttribute( $classOrObject, string $attribute, ?string $format = NULL, array $context = []) : bool |
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::isCircularReference(object $object, array $context) : bool Detects if the configured circular reference limit is reached. - throws \CircularReferenceException
|
protected Symfony\Component\Serializer\Normalizer\AbstractNormalizer::prepareForDenormalization(?mixed $data) : array Normalizes the given data to an array. It's particularly useful during
the denormalization process. |
protected setAttributeValue(object $object, string $attribute, ?mixed $value, ?string $format = NULL, array $context = []) : void |
protected final Symfony\Component\Serializer\Normalizer\AbstractNormalizer::validateCallbackContext(array $context, string $contextType = '') : void Validate callbacks set in context. - param string $contextType Used to specify which context is invalid in exceptions
- throws \InvalidArgumentException
|