LoaderChain

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.

Methods

__construct(array $loaders)

Accepts a list of LoaderInterface instances.

bool loadClassMetadata(ClassMetadataInterface $metadata)

Load class metadata.

Details

__construct(array $loaders)

Accepts a list of LoaderInterface instances.

Parameters

array $loaders An array of LoaderInterface instances

Exceptions

MappingException If any of the loaders does not implement LoaderInterface

bool loadClassMetadata(ClassMetadataInterface $metadata)

Load class metadata.

Parameters

ClassMetadataInterface $metadata

Return Value

bool
doc_Symfony
2016-10-28 06:22:46
Comments
Leave a Comment

Please login to continue.