Skip to content

Commit 2d95cb5

Browse files
committed
bug #4564 Typo when expression language is used to configure a service. (rubenrua)
This PR was submitted for the 2.6 branch but it was merged into the 2.5 branch instead (closes #4564). Discussion ---------- Typo when expression language is used to configure a service. Typo in XML and PHP code block when expression language is used to configure a service. ``` [Symfony\Component\ExpressionLanguage\SyntaxError] Unexpected character "@" around position 0. ``` Commits ------- 21b00b0 Typo when expression language is used to configure a service.
2 parents 33554fc + 21b00b0 commit 2d95cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/service_container.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ via a ``container`` variable. Here's another example:
720720
721721
<services>
722722
<service id="my_mailer" class="Acme\HelloBundle\Mailer">
723-
<argument type="expression">@=container.hasParameter('some_param') ? parameter('some_param') : 'default_value'</argument>
723+
<argument type="expression">container.hasParameter('some_param') ? parameter('some_param') : 'default_value'</argument>
724724
</service>
725725
</services>
726726
</container>
@@ -733,7 +733,7 @@ via a ``container`` variable. Here's another example:
733733
$container->setDefinition('my_mailer', new Definition(
734734
'Acme\HelloBundle\Mailer',
735735
array(new Expression(
736-
"@=container.hasParameter('some_param') ? parameter('some_param') : 'default_value'"
736+
"container.hasParameter('some_param') ? parameter('some_param') : 'default_value'"
737737
))
738738
));
739739

0 commit comments

Comments
 (0)