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.

getLoaders()

No description

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

__construct(array $paths)

Creates a new loader.

Parameters

array $paths An array of file paths

bool loadClassMetadata(ClassMetadata $metadata)

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

Parameters

ClassMetadata $metadata

Return Value

bool Whether the loader succeeded

LoaderInterface[] getLoaders()

Return Value

LoaderInterface[]

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

LoaderInterface getFileLoaderInstance($file)

Creates a loader for the given file path.

Parameters

$file

Return Value

LoaderInterface The created loader