You are here

public function XmlFilesLoader::getFileLoaderInstance in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Mapping/Loader/XmlFilesLoader.php \Symfony\Component\Validator\Mapping\Loader\XmlFilesLoader::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/XmlFilesLoader.php, line 27

Class

XmlFilesLoader
Loads validation metadata from a list of XML files.

Namespace

Symfony\Component\Validator\Mapping\Loader

Code

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