protected function XmlFileLoader::loadFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Loader/XmlFileLoader.php \Symfony\Component\Routing\Loader\XmlFileLoader::loadFile()
Loads an XML file.
Parameters
string $file An XML file path:
Return value
\DOMDocument
Throws
\InvalidArgumentException When loading of XML file fails because of syntax errors or when the XML structure is not as expected by the scheme - see validate()
1 call to XmlFileLoader::loadFile()
- XmlFileLoader::load in vendor/
symfony/ routing/ Loader/ XmlFileLoader.php - Loads an XML file.
1 method overrides XmlFileLoader::loadFile()
- CustomXmlFileLoader::loadFile in vendor/
symfony/ routing/ Tests/ Fixtures/ CustomXmlFileLoader.php - Loads an XML file.
File
- vendor/
symfony/ routing/ Loader/ XmlFileLoader.php, line 211
Class
- XmlFileLoader
- XmlFileLoader loads XML routing files.
Namespace
Symfony\Component\Routing\LoaderCode
protected function loadFile($file) {
return XmlUtils::loadFile($file, __DIR__ . static::SCHEME_PATH);
}