protected function CustomXmlFileLoader::loadFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/Fixtures/CustomXmlFileLoader.php \Symfony\Component\Routing\Tests\Fixtures\CustomXmlFileLoader::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()
Overrides XmlFileLoader::loadFile
File
- vendor/
symfony/ routing/ Tests/ Fixtures/ CustomXmlFileLoader.php, line 22
Class
- CustomXmlFileLoader
- XmlFileLoader with schema validation turned off.
Namespace
Symfony\Component\Routing\Tests\FixturesCode
protected function loadFile($file) {
return XmlUtils::loadFile($file, function () {
return true;
});
}