class LoaderChain implements LoaderInterface
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.
__construct(array $loaders) Accepts a list of LoaderInterface instances. | ||
bool | loadClassMetadata(ClassMetadataInterface $metadata) | |
LoaderInterface[] | getLoaders() |
Accepts a list of LoaderInterface instances.
array | $loaders | An array of LoaderInterface instances |
MappingException | If any of the loaders does not implement LoaderInterface |
ClassMetadataInterface | $metadata |
bool |
LoaderInterface[] |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/Mapping/Loader/LoaderChain.html