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 @@ -614,7 +614,8 @@ logic about those arguments::
614
614
615
615
The ``#[Autowire] `` attribute can also be used for :ref: `parameters <service-parameters >`,
616
616
:doc: `complex expressions </service_container/expression_language >` and even
617
- :ref: `environment variables <config-env-vars >`::
617
+ :ref: `environment variables <config-env-vars >` ,
618
+ :doc: `including env variable processors </configuration/env_var_processors >`::
618
619
619
620
// src/Service/MessageGenerator.php
620
621
namespace App\Service;
@@ -640,6 +641,10 @@ The ``#[Autowire]`` attribute can also be used for :ref:`parameters <service-par
640
641
// environment variables
641
642
#[Autowire(env: 'SOME_ENV_VAR')]
642
643
string $senderName,
644
+
645
+ // environment variables with processors
646
+ #[Autowire(env: 'bool:SOME_BOOL_ENV_VAR')]
647
+ string $allowAttachments,
643
648
) {
644
649
}
645
650
// ...
You can’t perform that action at this time.
0 commit comments