Skip to content

Commit e116b8a

Browse files
Update kernel.rst: Adding example for kernel.project_dir
Page: https://symfony.com/doc/6.4/reference/configuration/kernel.html#kernel-project-dir Reason: Showing there is no trailing slash in the path.
1 parent e7d5408 commit e116b8a

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
@@ -261,12 +261,14 @@ method of the kernel class, which you can override to return a different value.
261261
``kernel.project_dir``
262262
----------------------
263263

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

266266
This parameter stores the absolute path of the root directory of your Symfony application,
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+
270272
By default, its value is calculated automatically as the directory where the
271273
main ``composer.json`` file is stored. This value is also exposed via the
272274
:method:`Symfony\\Component\\HttpKernel\\Kernel::getProjectDir` method of the

0 commit comments

Comments
 (0)