mediatekformation

FilesLoader extends LoaderChain
in package

Base loader for loading validation metadata from a list of files.

Tags
author

Bulat Shakirzyanov mallluhuct@gmail.com

author

Bernhard Schussek bschussek@gmail.com

see
YamlFilesLoader
see
XmlFilesLoader

Table of Contents

$loaders  : mixed
__construct()  : mixed
Creates a new loader.
getLoaders()  : array<string|int, LoaderInterface>
loadClassMetadata()  : bool
Loads validation metadata into a {@link ClassMetadata} instance.
getFileLoaderInstance()  : LoaderInterface
Creates a loader for the given file path.
getFileLoaders()  : array<string|int, LoaderInterface>
Returns an array of file loaders for the given file paths.

Properties

Methods

__construct()

Creates a new loader.

public __construct(array<string|int, mixed> $paths) : mixed
Parameters
$paths : array<string|int, mixed>

An array of file paths

Return values
mixed

loadClassMetadata()

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

public loadClassMetadata(ClassMetadata $metadata) : bool
Parameters
$metadata : ClassMetadata
Return values
bool

Whether the loader succeeded

getFileLoaderInstance()

Creates a loader for the given file path.

protected abstract getFileLoaderInstance(string $path) : LoaderInterface
Parameters
$path : string

The file path

Return values
LoaderInterface

The created loader

getFileLoaders()

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

protected getFileLoaders(array<string|int, mixed> $paths) : array<string|int, LoaderInterface>
Parameters
$paths : array<string|int, mixed>

An array of file paths

Return values
array<string|int, LoaderInterface>

The metadata loaders

Search results