Symfony2 API
Class

Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader

class YamlFilesLoader extends FilesLoader

Loads validation metadata from a list of YAML files.

Methods

__construct(array $paths)

Creates a new loader.

from FilesLoader
bool loadClassMetadata(ClassMetadata $metadata)

Loads validation metadata into a {@link ClassMetadata} instance.

from LoaderChain
getFileLoaderInstance($file)

{@inheritdoc}

Details

in FilesLoader at line 30
public __construct(array $paths)

Creates a new loader.

Parameters

array $paths An array of file paths

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

Loads validation metadata into a {@link ClassMetadata} instance.

Parameters

ClassMetadata $metadata The metadata to load

Return Value

bool Whether the loader succeeded

at line 27
public getFileLoaderInstance($file)

{@inheritdoc}

Parameters

$file