Skip to content

Commit 3a3c990

Browse files
committed
Add the versionadded directive
1 parent 971073b commit 3a3c990

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

configuration/env_var_processors.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,8 @@ Symfony provides the following env var processors:
699699
]);
700700
701701
``env(enum:FooEnum:BAR)``
702-
Tries to convert an environment variable to an actual ``\BackedEnum`` value. This processor takes the fully qualified
703-
name of the ``\BackedEnum`` as an argument.
702+
Tries to convert an environment variable to an actual ``\BackedEnum`` value.
703+
This processor takes the fully qualified name of the ``\BackedEnum`` as an argument.
704704

705705
.. code-block:: php
706706
@@ -741,6 +741,10 @@ Symfony provides the following env var processors:
741741
// config/services.php
742742
$container->setParameter('typed_env', '%env(enum:App\Enum\Environment:APP_ENV)%');
743743
744+
.. versionadded:: 6.2
745+
746+
The ``env(enum:...)`` env var processor was introduced in Symfony 6.2.
747+
744748
It is also possible to combine any number of processors:
745749

746750
.. configuration-block::

0 commit comments

Comments
 (0)