LoaderChain

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)
bool loadClassMetadata(ClassMetadata $metadata)

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

Details

__construct(array $loaders)

Parameters

array $loaders The metadata loaders to use

Exceptions

MappingException If any of the loaders has an invalid type

bool loadClassMetadata(ClassMetadata $metadata)

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

Parameters

ClassMetadata $metadata The metadata to load

Return Value

bool Whether the loader succeeded
doc_Symfony
2016-10-28 06:22:47
Comments
Leave a Comment

Please login to continue.