Documentation

LoaderChain
in package
implements LoaderInterface

Calls multiple {@link LoaderInterface} instances in a chain.

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

Tags
author

Bernhard Schussek bschussek@gmail.com

author

Kévin Dunglas dunglas@gmail.com

Table of Contents

Interfaces

LoaderInterface
Loads {@link ClassMetadataInterface}.

Properties

$loaders  : mixed

Methods

__construct()  : mixed
Accepts a list of LoaderInterface instances.
getLoaders()  : array<string|int, LoaderInterface>
loadClassMetadata()  : bool

Properties

Methods

__construct()

Accepts a list of LoaderInterface instances.

public __construct(array<string|int, LoaderInterface$loaders) : mixed
Parameters
$loaders : array<string|int, LoaderInterface>

An array of LoaderInterface instances

Tags
throws
MappingException

If any of the loaders does not implement LoaderInterface

loadClassMetadata()

public loadClassMetadata(ClassMetadataInterface $metadata) : bool
Parameters
$metadata : ClassMetadataInterface
Return values
bool

        
On this page

Search results