Skip to content

Commit d31f369

Browse files
committed
minor symfony#11286 Update project directory method override (tdutrion)
This PR was merged into the 4.2 branch. Discussion ---------- Update project directory method override This follows up symfony/recipes#564 (not yet merged), and updates the documentation according to the actual code provided in the recipe. Commits ------- f48dd00 Update project directory method override
2 parents 0253d34 + f48dd00 commit d31f369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/kernel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ method to return the right project directory::
8181
{
8282
// ...
8383

84-
public function getProjectDir()
84+
public function getProjectDir(): string
8585
{
86-
return realpath(__DIR__.'/../');
86+
return \dirname(__DIR__);
8787
}
8888
}
8989

0 commit comments

Comments
 (0)