diff --git a/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php b/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php index c2601d4581..12a5bedb4f 100644 --- a/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php +++ b/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php @@ -12,14 +12,15 @@ namespace Symfony\Component\Routing\Tests\Fixtures; use Symfony\Component\Routing\Loader\XmlFileLoader; +use Symfony\Component\Config\Util\XmlUtils; /** * XmlFileLoader with schema validation turned off */ class CustomXmlFileLoader extends XmlFileLoader { - protected function validate(\DOMDocument $dom) + protected function loadFile($file) { - return true; + return XmlUtils::loadFile($file, function() { return true; }); } }