You are here

public function YamlFilesLoader::getFileLoaderInstance in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Mapping/Loader/YamlFilesLoader.php \Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader::getFileLoaderInstance()

Creates a loader for the given file path.

Parameters

string $path The file path:

Return value

LoaderInterface The created loader

Overrides FilesLoader::getFileLoaderInstance

File

vendor/symfony/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);
}