This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #15603).
Discussion
----------
[HttpKernel] Do not normalize the kernel root directory path #15567
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #15474
| License | MIT
| Doc PR | -
Commits
-------
a53489e
Do not normalize the kernel root directory path (see symfony/symfony#15474).
This commit is contained in:
commit
43f5b9ea61
|
@ -344,7 +344,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
||||||
{
|
{
|
||||||
if (null === $this->rootDir) {
|
if (null === $this->rootDir) {
|
||||||
$r = new \ReflectionObject($this);
|
$r = new \ReflectionObject($this);
|
||||||
$this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
|
$this->rootDir = dirname($r->getFileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->rootDir;
|
return $this->rootDir;
|
||||||
|
|
Reference in New Issue