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 2fe4181

Browse filesBrowse files
committed
Merge branch '5.2' into 5.x
* 5.2: [Service Container] Fix Service parameters typo in services.yml
2 parents 59f65d9 + e154d5e commit 2fe4181
Copy full SHA for 2fe4181

File tree

1 file changed

+7
-6
lines changed
Filter options

1 file changed

+7
-6
lines changed

‎service_container.rst

Copy file name to clipboardExpand all lines: service_container.rst
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ parameter and in PHP config use the ``service()`` function:
500500
# config/services.yaml
501501
services:
502502
App\Service\MessageGenerator:
503-
# this is not a string, but a reference to a service called 'logger'
504-
arguments: ['@logger']
503+
arguments:
504+
# this is not a string, but a reference to a service called 'logger'
505+
- '@logger'
505506
506-
# if the value of a string parameter starts with '@', you need to escape
507-
# it by adding another '@' so Symfony doesn't consider it a service
508-
# (this will be parsed as the string '@securepassword')
509-
mailer_password: '@@securepassword'
507+
# if the value of a string argument starts with '@', you need to escape
508+
# it by adding another '@' so Symfony doesn't consider it a service
509+
# the following example would be parsed as the string '@securepassword'
510+
# - '@@securepassword'
510511
511512
.. code-block:: xml
512513

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.