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 21b00b0

Browse filesBrowse files
rubenruawouterj
authored andcommitted
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. ```
1 parent 33554fc commit 21b00b0
Copy full SHA for 21b00b0

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.