You are here

public function YamlFilesLoader::getFileLoaderInstance in Plug 7

Creates a loader for the given file path.

Parameters

string $path The file path:

Return value

LoaderInterface The created loader

Overrides FilesLoader::getFileLoaderInstance

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.php, line 27

Class

YamlFilesLoader
Loads validation metadata from a list of YAML files.

Namespace

Symfony\Component\Validator\Mapping\Loader

Code

public function getFileLoaderInstance($file) {
  return new YamlFileLoader($file);
}