File tree 1 file changed +6
-1
lines changed
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::
610
610
611
611
The ``#[Autowire] `` attribute can also be used for :ref: `parameters <service-parameters >`,
612
612
: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 >`::
614
615
615
616
// src/Service/MessageGenerator.php
616
617
namespace App\Service;
@@ -636,6 +637,10 @@ The ``#[Autowire]`` attribute can also be used for :ref:`parameters <service-par
636
637
// environment variables
637
638
#[Autowire(env: 'SOME_ENV_VAR')]
638
639
string $senderName,
640
+
641
+ // environment variables with processors
642
+ #[Autowire(env: 'bool:SOME_BOOL_ENV_VAR')]
643
+ bool $allowAttachments,
639
644
) {
640
645
}
641
646
// ...
You can’t perform that action at this time.
0 commit comments