|
@@ -238,7 +238,7 @@ class XmlFileLoader extends FileLoader
|
|
$imports = '';
|
|
$imports = '';
|
|
foreach ($schemaLocations as $namespace => $location) {
|
|
foreach ($schemaLocations as $namespace => $location) {
|
|
$parts = explode('/', $location);
|
|
$parts = explode('/', $location);
|
|
- $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts) : '';
|
|
|
|
|
|
+ $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
|
|
$location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));
|
|
$location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));
|
|
|
|
|
|
$imports .= sprintf(' <xsd:import namespace="%s" schemaLocation="%s" />'."\n", $namespace, $location);
|
|
$imports .= sprintf(' <xsd:import namespace="%s" schemaLocation="%s" />'."\n", $namespace, $location);
|