Skip to content

Commit b1637f4

Browse files
authored
Fix PHP example on ExpressionLanguage Injection
1 parent 5514b60 commit b1637f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/expression_language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +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-
->args([expr(sprintf('service(%s).getMailerMethod()', MailerConfiguration::class))]);
70+
->args([expr(sprintf('service(%s).getMailerMethod()', var_export(MailerConfiguration::class, true)))]);
7171
};
7272
7373

0 commit comments

Comments
 (0)