class YamlFilesLoader extends FilesLoader

Loads validation metadata from a list of YAML files.

Properties

protected $loaders from LoaderChain

Methods

__construct(array $paths)

Creates a new loader.

bool
loadClassMetadata(ClassMetadata $metadata)

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

getFileLoaders(array $paths)

Returns an array of file loaders for the given file paths.

getFileLoaderInstance($file)

Creates a loader for the given file path.

Details

in FilesLoader at line 30
__construct(array $paths)

Creates a new loader.

Parameters

array $paths An array of file paths

in LoaderChain at line 49
bool loadClassMetadata(ClassMetadata $metadata)

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

Parameters

ClassMetadata $metadata

Return Value

bool Whether the loader succeeded

in FilesLoader at line 42
protected LoaderInterface[] getFileLoaders(array $paths)

Returns an array of file loaders for the given file paths.

Parameters

array $paths An array of file paths

Return Value

LoaderInterface[] The metadata loaders

at line 27
LoaderInterface getFileLoaderInstance($file)

Creates a loader for the given file path.

Parameters

$file

Return Value

LoaderInterface The created loader