Skip to content

Commit 9de6dde

Browse files
committed
minor #15863 [Runtime] Possibility to define the env and/or debug key (maxhelias)
This PR was merged into the 5.4 branch. Discussion ---------- [Runtime] Possibility to define the env and/or debug key Fix #15861 Commits ------- d819624 [Runtime] Possibility to define the env and/or debug key
2 parents fd38755 + d819624 commit 9de6dde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/runtime.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,14 @@ these options:
351351
knows how to deal with each of them.
352352
``error_handler`` (default: :class:`Symfony\\Component\\Runtime\\Internal\\BasicErrorHandler` or :class:`Symfony\\Component\\Runtime\\Internal\\SymfonyErrorHandler` for ``SymfonyRuntime``)
353353
Defines the class to use to handle PHP errors.
354+
``env_var_name`` (default: ``"APP_ENV"``)
355+
To define the name of the env var for the Symfony env.
356+
``debug_var_name`` (default: ``"APP_DEBUG"``)
357+
To define the name of the debug var for the debug flag.
358+
359+
.. versionadded:: 5.4
360+
361+
The ``env_var_name`` and ``debug_var_name`` options was introduced in Symfony 5.4.
354362

355363
Create Your Own Runtime
356364
-----------------------

0 commit comments

Comments
 (0)