You are here

public function XmlFilesLoader::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/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);
}