Symfony2 API
Class

Symfony\Component\Validator\Mapping\Loader\LoaderChain

class LoaderChain implements LoaderInterface

Calls multiple LoaderInterface instances in a chain

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

Methods

__construct(array $loaders)

Accepts a list of LoaderInterface instances

Boolean loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Details

at line 38
public __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

at line 52
public Boolean loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Parameters

ClassMetadata $metadata A metadata

Return Value

Boolean