File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -699,8 +699,8 @@ Symfony provides the following env var processors:
699
699
]);
700
700
701
701
``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.
704
704
705
705
.. code-block :: php
706
706
@@ -741,6 +741,10 @@ Symfony provides the following env var processors:
741
741
// config/services.php
742
742
$container->setParameter('typed_env', '%env(enum:App\Enum\Environment:APP_ENV)%');
743
743
744
+ .. versionadded :: 6.2
745
+
746
+ The ``env(enum:...) `` env var processor was introduced in Symfony 6.2.
747
+
744
748
It is also possible to combine any number of processors:
745
749
746
750
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments