We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90802a6 commit d49fa64Copy full SHA for d49fa64
reference/configuration/kernel.rst
@@ -47,7 +47,7 @@ charset::
47
Project Directory
48
~~~~~~~~~~~~~~~~~
49
50
-**type**: ``string`` **default**: the directory of the project ``composer.json``
+**type**: ``string`` **default**: the directory of the project's ``composer.json``
51
52
This returns the absolute path of the root directory of your Symfony project,
53
which is used by applications to perform operations with file paths relative to
@@ -75,6 +75,8 @@ method to return the right project directory::
75
76
public function getProjectDir(): string
77
{
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'
80
return \dirname(__DIR__);
81
}
82
0 commit comments