File tree 2 files changed +12
-3
lines changed
components/dependency_injection
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ and set a parameter in the container with::
25
25
26
26
$container->setParameter('mailer.transport', 'sendmail');
27
27
28
+ .. caution ::
29
+
30
+ The used ``. `` notation is just a
31
+ :ref: `Symfony convention <service-naming-conventions >` to make parameters
32
+ easier to read. Parameters are just flat key-value elements, they can't be
33
+ inherited.
34
+
28
35
.. note ::
29
36
30
37
You can only set a parameter before the container is compiled. To learn
@@ -190,9 +197,9 @@ making the class of a service a parameter:
190
197
Array Parameters
191
198
----------------
192
199
193
- Parameters do not need to be flat strings, they can also be arrays. For the XML
194
- format, you need to use the ``type="collection" `` attribute for all parameters that are
195
- arrays.
200
+ Parameters do not need to be flat strings, they can also contain array values.
201
+ For the XML format, you need to use the ``type="collection" `` attribute for
202
+ all parameters that are arrays.
196
203
197
204
.. configuration-block ::
198
205
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ Naming Conventions
133
133
* Don't forget to look at the more verbose :doc: `conventions ` document for
134
134
more subjective naming considerations.
135
135
136
+ .. _service-naming-conventions :
137
+
136
138
Service Naming Conventions
137
139
~~~~~~~~~~~~~~~~~~~~~~~~~~
138
140
You can’t perform that action at this time.
0 commit comments