Skip to content

Commit d49fa64

Browse files
committed
backport #19874 to 5.4
1 parent 90802a6 commit d49fa64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/configuration/kernel.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ charset::
4747
Project Directory
4848
~~~~~~~~~~~~~~~~~
4949

50-
**type**: ``string`` **default**: the directory of the project ``composer.json``
50+
**type**: ``string`` **default**: the directory of the project's ``composer.json``
5151

5252
This returns the absolute path of the root directory of your Symfony project,
5353
which is used by applications to perform operations with file paths relative to
@@ -75,6 +75,8 @@ method to return the right project directory::
7575

7676
public function getProjectDir(): string
7777
{
78+
// when defining a hardcoded string, don't add the trailing slash to the path
79+
// e.g. '/home/user/my_project', '/app', '/var/www/example.com'
7880
return \dirname(__DIR__);
7981
}
8082
}

0 commit comments

Comments
 (0)