File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,8 @@ logic about those arguments::
610610
611611The ``#[Autowire] `` attribute can also be used for :ref: `parameters <service-parameters >`,
612612:doc: `complex expressions </service_container/expression_language >` and even
613- :ref: `environment variables <config-env-vars >`::
613+ :ref: `environment variables <config-env-vars >` ,
614+ :doc: `including env variable processors </configuration/env_var_processors >`::
614615
615616 // src/Service/MessageGenerator.php
616617 namespace App\Service;
@@ -636,6 +637,10 @@ The ``#[Autowire]`` attribute can also be used for :ref:`parameters <service-par
636637 // environment variables
637638 #[Autowire(env: 'SOME_ENV_VAR')]
638639 string $senderName,
640+
641+ // environment variables with processors
642+ #[Autowire(env: 'bool:SOME_BOOL_ENV_VAR')]
643+ bool $allowAttachments,
639644 ) {
640645 }
641646 // ...
You can’t perform that action at this time.
0 commit comments