Skip to content

Commit d37e497

Browse files
committed
Minor tweak
1 parent 9de6dde commit d37e497

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

components/runtime.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,21 +344,26 @@ The following options are supported by the ``SymfonyRuntime``:
344344
Besides these, the ``GenericRuntime`` and ``SymfonyRuntime`` also support
345345
these options:
346346

347-
``debug`` (default: ``APP_DEBUG`` environment variable, or ``true``)
348-
Toggles displaying errors.
347+
``debug`` (default: the value of the env var defined by ``debug_var_name`` option
348+
(usually, ``APP_DEBUG``), or ``true`` if such env var is not defined)
349+
Toggles the :ref:`debug mode <debug-mode>` of Symfony applications (e.g. to
350+
display errors)
349351
``runtimes``
350352
Maps "application types" to a ``GenericRuntime`` implementation that
351353
knows how to deal with each of them.
352354
``error_handler`` (default: :class:`Symfony\\Component\\Runtime\\Internal\\BasicErrorHandler` or :class:`Symfony\\Component\\Runtime\\Internal\\SymfonyErrorHandler` for ``SymfonyRuntime``)
353355
Defines the class to use to handle PHP errors.
354356
``env_var_name`` (default: ``"APP_ENV"``)
355-
To define the name of the env var for the Symfony env.
357+
Defines the name of the env var that stores the name of the
358+
:ref:`configuration environment <configuration-environments>`
359+
to use when running the application.
356360
``debug_var_name`` (default: ``"APP_DEBUG"``)
357-
To define the name of the debug var for the debug flag.
361+
Defines the name of the env var that stores the value of the
362+
:ref:`debug mode <debug-mode>` flag to use when running the application.
358363

359364
.. versionadded:: 5.4
360365

361-
The ``env_var_name`` and ``debug_var_name`` options was introduced in Symfony 5.4.
366+
The ``env_var_name`` and ``debug_var_name`` options were introduced in Symfony 5.4.
362367

363368
Create Your Own Runtime
364369
-----------------------

0 commit comments

Comments
 (0)