Copied!

Calls multiple {@link LoaderInterface} instances in a chain.

This class accepts multiple instances of LoaderInterface to be passed to the constructor. When {@link loadClassMetadata()} is called, the same method is called in all of these loaders, regardless of whether any of them was successful or not.

CloneableInstantiable
Methods
public __construct(array $loaders)
 

Accepts a list of LoaderInterface instances.

  • param \LoaderInterface[] $loaders An array of LoaderInterface instances
  • throws \MappingException If any of the loaders does not implement LoaderInterface
public getLoaders() : array
 
  • return \LoaderInterface[]
public loadClassMetadata(Symfony\Component\Serializer\Mapping\ClassMetadataInterface $metadata) : bool
Properties
private readonly array $loaders
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration