File tree 1 file changed +7
-2
lines changed
components/dependency_injection 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ Setting Up the Container with Configuration Files
200
200
As well as setting up the services using PHP as above you can also use configuration
201
201
files. To do this you also need to install :doc: `the Config Component</components/config/introduction> `.
202
202
203
- Loading an xml config file:
203
+ Loading an XML config file:
204
204
205
205
.. code-block :: php
206
206
@@ -212,7 +212,7 @@ Loading an xml config file:
212
212
$loader = new XmlFileLoader($container, new FileLocator(__DIR__));
213
213
$loader->load('services.xml');
214
214
215
- Loading a yaml config file:
215
+ Loading a YAML config file:
216
216
217
217
.. code-block :: php
218
218
@@ -224,6 +224,11 @@ Loading a yaml config file:
224
224
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
225
225
$loader->load('services.yml');
226
226
227
+ .. note ::
228
+
229
+ If you want to load YAML config files then you will also need to install
230
+ :doc: `The YAML component</components/yaml> `.
231
+
227
232
The ``newsletter_manager `` and ``mailer `` services can be set up using config files:
228
233
229
234
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments