We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1b3020 + dddfd39 commit a4a9b3fCopy full SHA for a4a9b3f
service_container/expression_language.rst
@@ -67,10 +67,9 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
67
$services->set(MailerConfiguration::class);
68
69
$services->set(Mailer::class)
70
- ->args([expr(sprintf('service(%s).getMailerMethod()', MailerConfiguration::class))]);
+ ->args([expr("service('App\\Mail\\MailerConfiguration').getMailerMethod()")]);
71
};
72
73
-
74
To learn more about the expression language syntax, see :doc:`/components/expression_language/syntax`.
75
76
In this context, you have access to 2 functions:
0 commit comments