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 @@ -614,7 +614,8 @@ logic about those arguments::
614614
615615The ``#[Autowire] `` attribute can also be used for :ref: `parameters <service-parameters >`,
616616: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 >`::
618619
619620 // src/Service/MessageGenerator.php
620621 namespace App\Service;
@@ -640,6 +641,10 @@ The ``#[Autowire]`` attribute can also be used for :ref:`parameters <service-par
640641 // environment variables
641642 #[Autowire(env: 'SOME_ENV_VAR')]
642643 string $senderName,
644+
645+ // environment variables with processors
646+ #[Autowire(env: 'bool:SOME_BOOL_ENV_VAR')]
647+ string $allowAttachments,
643648 ) {
644649 }
645650 // ...
You can’t perform that action at this time.
0 commit comments