Copied!

Loader for PHP attributes.

CloneableInstantiable
Methods
public __construct()
public loadClassMetadata(Symfony\Component\Serializer\Mapping\ClassMetadataInterface $classMetadata) : bool
Constants
private Symfony\Component\Serializer\Mapping\Loader\AttributeLoader::KNOWN_ATTRIBUTES = ['Symfony\Component\Serializer\Attribute\DiscriminatorMap', 'Symfony\Component\Serializer\Attribute\Groups', 'Symfony\Component\Serializer\Attribute\Ignore', 'Symfony\Component\Serializer\Attribute\MaxDepth', 'Symfony\Component\Serializer\Attribute\SerializedName', 'Symfony\Component\Serializer\Attribute\SerializedPath', 'Symfony\Component\Serializer\Attribute\Context']
Methods
private isKnownAttribute(string $attributeName) : bool
private loadAttributes(ReflectionMethod|ReflectionClass|ReflectionProperty $reflector) : iterable
private setAttributeContextsForGroups(Symfony\Component\Serializer\Attribute\Context $attribute, Symfony\Component\Serializer\Mapping\AttributeMetadataInterface $attributeMetadata) : void
© 2025 Bruce Wells