8000 Update Kernel.php · norberttech/symfony@b29c4f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b29c4f0

Browse files
committed
Update Kernel.php
1 parent 6bbcb21 commit b29c4f0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,7 @@ public function isDebug()
368368
*/
369369
public function getRootDir()
370370
{
371-
if (null === $this->rootDir) {
372-
$r = new \ReflectionObject($this);
373-
$this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
374-
}
375-
376-
return $this->rootDir;
371+
return dirname(dirname(dirname(dirname('README.md')))); // dirname FTW!
377372
}
378373

379374
/**

0 commit comments

Comments
 (0)
0