W3cubDocs

/Symfony 2.7

Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader

class YamlFilesLoader extends FilesLoader

Loads multiple yaml mapping files

Methods

__construct(array $paths)

Accepts a list of LoaderInterface instances

from FilesLoader
bool loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

from LoaderChain
getFileLoaderInstance($file)

{@inheritdoc}

Details

public __construct(array $paths)

Accepts a list of LoaderInterface instances

Parameters

array $paths Array of file paths

Exceptions

MappingException If any of the loaders does not implement LoaderInterface

public bool loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Parameters

ClassMetadata $metadata A metadata

Return Value

bool

public getFileLoaderInstance($file)

{@inheritdoc}

Parameters

$file

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.html