|
@@ -176,7 +176,7 @@ class XmlFileLoader extends FileLoader
|
|
{
|
|
{
|
|
$dom = new \DOMDocument();
|
|
$dom = new \DOMDocument();
|
|
libxml_use_internal_errors(true);
|
|
libxml_use_internal_errors(true);
|
|
- if (!$dom->load($file, LIBXML_COMPACT)) {
|
|
|
|
|
|
+ if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
|
|
throw new MappingException(implode("\n", $this->getXmlErrors()));
|
|
throw new MappingException(implode("\n", $this->getXmlErrors()));
|
|
}
|
|
}
|
|
if (!$dom->schemaValidate(__DIR__.'/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd')) {
|
|
if (!$dom->schemaValidate(__DIR__.'/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd')) {
|