We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f1a98 commit 394385dCopy full SHA for 394385d
service_container/expression_language.rst
@@ -67,7 +67,7 @@ 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(sprintf('service(%s).getMailerMethod()', var_export(MailerConfiguration::class, true)))]);
71
};
72
73
0 commit comments