Skip to content

Commit 209e939

Browse files
committed
Added a comment to the code
1 parent b5f1dca commit 209e939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service_container/expression_language.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
6767
$services->set(MailerConfiguration::class);
6868
6969
$services->set(Mailer::class)
70+
// because of the escaping applied by PHP, you must add 4 backslashes for each original backslash
7071
->args([expr("service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()")]);
7172
};
7273

0 commit comments

Comments
 (0)