class LoaderChain implements LoaderInterface

Loads validation metadata from multiple {@link LoaderInterface} instances.

Pass the loaders when constructing the chain. Once {@link loadClassMetadata()} is called, that method will be called on all loaders in the chain.

Methods

__construct(array $loaders)

No description

bool
loadClassMetadata(ClassMetadata $metadata)

Loads validation metadata into a {@link ClassMetadata} instance.

getLoaders()

No description

Details

at line line 35
__construct(array $loaders)

Parameters

array $loaders The metadata loaders to use

Exceptions

MappingException If any of the loaders has an invalid type

at line line 49
bool loadClassMetadata(ClassMetadata $metadata)

Loads validation metadata into a {@link ClassMetadata} instance.

Parameters

ClassMetadata $metadata

Return Value

bool Whether the loader succeeded

at line line 63
LoaderInterface[] getLoaders()

Return Value

LoaderInterface[]