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 b5f1dca commit 209e939Copy full SHA for 209e939
service_container/expression_language.rst
@@ -67,6 +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
+ // because of the escaping applied by PHP, you must add 4 backslashes for each original backslash
71
->args([expr("service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()")]);
72
};
73
0 commit comments