parent
af1c41c2fc
commit
d1f77c6d0d
@ -750,11 +750,13 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
|
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
|
||||||
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
|
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
|
||||||
|
|
||||||
if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
|
$relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
|
||||||
|
|
||||||
|
if ($relativePath === '.') {
|
||||||
return $prefix;
|
return $prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $prefix.".'/".$relativePath."'";
|
return $prefix . ".'/" . $relativePath . "'";
|
||||||
}, $content);
|
}, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user