Class

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

in FilesLoader at line 31
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

in LoaderChain at line 52
public bool loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Parameters

ClassMetadata $metadata A metadata

Return Value

bool

at line 26
public getFileLoaderInstance($file)

{@inheritdoc}

Parameters

$file