Skip to content

Commit af764d7

Browse files
committed
Minor fixes: Typos, Formatting, code, YAML code block
1 parent 36ebcab commit af764d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cookbook/service_container/scopes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ you have three ways to deal with it:
8080
* Use setter injection if the dependency is "synchronized"; this is the
8181
recommended way and the best solution for the ``request`` instance as it is
8282
synchronized with the ``request`` scope (see
83-
:ref:`using-synchronized-service`).
83+
:ref:`using-synchronized-service`);
8484

8585
* Put your service in the same scope as the dependency (or a narrower one). If
8686
you depend on the ``request`` service, this means putting your new service
@@ -89,7 +89,7 @@ you have three ways to deal with it:
8989
* Pass the entire container to your service and retrieve your dependency from
9090
the container each time you need it to be sure you have the right instance
9191
-- your service can live in the default ``container`` scope (see
92-
:ref:`passing-container`);
92+
:ref:`passing-container`).
9393

9494
Each scenario is detailed in the following sections.
9595

@@ -149,7 +149,7 @@ your code. This should also be taken into account when declaring your service:
149149
greeting_card_manager:
150150
class: Acme\HelloBundle\Mail\GreetingCardManager
151151
calls:
152-
- [setRequest, ['@?request=']]
152+
- [setRequest, ['@?request']]
153153
154154
.. code-block:: xml
155155
@@ -230,7 +230,7 @@ Changing the scope of a service should be done in its definition:
230230
greeting_card_manager:
231231
class: Acme\HelloBundle\Mail\GreetingCardManager
232232
scope: request
233-
arguments: [@request]
233+
arguments: ["@request"]
234234
235235
.. code-block:: xml
236236

cookbook/templating/namespaced_paths.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ called ``sidebar.twig`` in that directory, you can use it easily:
8080

8181
.. code-block:: jinja
8282
83-
{% include '@foo_bar/side.bar.twig` %}
83+
{% include '@foo_bar/side.bar.twig' %}

0 commit comments

Comments
 (0)