/** * {@inheritDoc} */ protected function loadFile($file) { if (class_exists('Symfony\\Component\\Config\\Util\\XmlUtils')) { $dom = XmlUtils::loadFile($file); $this->validate($dom); return $dom; } return parent::loadFile($file); }
/** * {@inheritDoc} */ protected function loadFile($file) { if (class_exists('Symfony\\Component\\Config\\Util\\XmlUtils')) { return XmlUtils::loadFile($file, __DIR__ . '/../../Resources/config/schema/routing/rest_routing-1.0.xsd'); } return parent::loadFile($file); }