Skip to content

Commit 83a794c

Browse files
committed
Tweak
1 parent 8935c8f commit 83a794c

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
@@ -267,8 +267,6 @@ This parameter stores the absolute path of the root directory of your Symfony ap
267267
which is used by applications to perform operations with file paths relative to
268268
the project's root directory.
269269

270-
Example: `/home/user/my_project`
271-
272270
By default, its value is calculated automatically as the directory where the
273271
main ``composer.json`` file is stored. This value is also exposed via the
274272
:method:`Symfony\\Component\\HttpKernel\\Kernel::getProjectDir` method of the
@@ -290,6 +288,8 @@ have deleted it entirely (for example in the production servers), override the
290288

291289
public function getProjectDir(): string
292290
{
291+
// when defining a hardcoded string, don't add the triailing slash to the path
292+
// e.g. '/home/user/my_project', '/app', '/var/www/example.com'
293293
return \dirname(__DIR__);
294294
}
295295
}

0 commit comments

Comments
 (0)