@@ -80,7 +80,7 @@ you have three ways to deal with it:
80
80
* Use setter injection if the dependency is "synchronized"; this is the
81
81
recommended way and the best solution for the ``request `` instance as it is
82
82
synchronized with the ``request `` scope (see
83
- :ref: `using-synchronized-service `).
83
+ :ref: `using-synchronized-service `);
84
84
85
85
* Put your service in the same scope as the dependency (or a narrower one). If
86
86
you depend on the ``request `` service, this means putting your new service
@@ -89,7 +89,7 @@ you have three ways to deal with it:
89
89
* Pass the entire container to your service and retrieve your dependency from
90
90
the container each time you need it to be sure you have the right instance
91
91
-- your service can live in the default ``container `` scope (see
92
- :ref: `passing-container `);
92
+ :ref: `passing-container `).
93
93
94
94
Each scenario is detailed in the following sections.
95
95
@@ -149,7 +149,7 @@ your code. This should also be taken into account when declaring your service:
149
149
greeting_card_manager :
150
150
class : Acme\HelloBundle\Mail\GreetingCardManager
151
151
calls :
152
- - [setRequest, ['@?request= ']]
152
+ - [setRequest, ['@?request']]
153
153
154
154
.. code-block :: xml
155
155
@@ -230,7 +230,7 @@ Changing the scope of a service should be done in its definition:
230
230
greeting_card_manager :
231
231
class : Acme\HelloBundle\Mail\GreetingCardManager
232
232
scope : request
233
- arguments : [@request]
233
+ arguments : [" @request" ]
234
234
235
235
.. code-block :: xml
236
236
0 commit comments