File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,8 @@ logic about those arguments::
565
565
The ``#[Autowire] `` attribute was introduced in Symfony 6.1.
566
566
567
567
The ``#[Autowire] `` attribute can also be used for :ref: `parameters <service-parameters >`,
568
- :doc: `complex expressions </service_container/expression_language >` and even :ref: `environment variables <config-env-vars >`::
568
+ :doc: `complex expressions </service_container/expression_language >` and even
569
+ :ref: `environment variables <config-env-vars >`::
569
570
570
571
// src/Service/MessageGenerator.php
571
572
namespace App\Service;
@@ -588,7 +589,7 @@ The ``#[Autowire]`` attribute can also be used for :ref:`parameters <service-par
588
589
#[Autowire(expression: 'service("App\\Mail\\MailerConfiguration").getMailerMethod()')]
589
590
string $mailerMethod
590
591
591
- // environment variable
592
+ // environment variables
592
593
#[Autowire(env: 'SOME_ENV_VAR')]
593
594
string $senderName
594
595
) {
You can’t perform that action at this time.
0 commit comments