Skip to content

Commit 8cd71ca

Browse files
committed
[Runtime] Expose project_dir as APP_PROJECT_DIR env var
1 parent 62bcb4e commit 8cd71ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/configuration/kernel.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,14 @@ have deleted it entirely (for example in the production servers), override the
289289
}
290290
}
291291

292+
This project directory is also available through the ``APP_PROJECT_DIR`` environment
293+
variable. This variable is read-only, so you cannot override it to change the project
294+
directory. Instead, use the ``Kernel::getProjectDir()`` method shown above.
295+
296+
.. versionadded:: 7.4
297+
298+
The ``APP_PROJECT_DIR`` environment variable was introduced in Symfony 7.4.
299+
292300
.. _configuration-kernel-runtime-environment:
293301

294302
``kernel.runtime_environment``

0 commit comments

Comments
 (0)