Skip to content

Commit a268135

Browse files
hacfijaviereguiluz
authored andcommitted
Fix FQCN in PHP example for expression language
1 parent 03337ef commit a268135

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
@@ -60,7 +60,7 @@ to another service: ``AppBundle\Mailer``. One way to do this is with an expressi
6060
$container->autowire(MailerConfiguration::class);
6161
6262
$container->autowire(Mailer::class)
63-
->addArgument(new Expression('service("AppBundle\Mail\MailerConfiguration").getMailerMethod()'));
63+
->addArgument(new Expression('service("AppBundle\\\\Mail\\\\MailerConfiguration").getMailerMethod()'));
6464
6565
To learn more about the expression language syntax, see :doc:`/components/expression_language/syntax`.
6666

0 commit comments

Comments
 (0)