Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2d95cb5

Browse filesBrowse 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
Copy full SHA for 2d95cb5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.