File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
components/dependency_injection Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ files. To do this you also need to install the Config component:
204
204
* Install it via PEAR ( `pear.symfony.com/Config `);
205
205
* Install it via Composer (`symfony/config ` on Packagist).
206
206
207
- Loading an xml config file:
207
+ Loading an XML config file:
208
208
209
209
.. code-block :: php
210
210
@@ -216,7 +216,7 @@ Loading an xml config file:
216
216
$loader = new XmlFileLoader($container, new FileLocator(__DIR__));
217
217
$loader->load('services.xml');
218
218
219
- Loading a yaml config file:
219
+ Loading a YAML config file:
220
220
221
221
.. code-block :: php
222
222
@@ -228,6 +228,11 @@ Loading a yaml config file:
228
228
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
229
229
$loader->load('services.yml');
230
230
231
+ .. note ::
232
+
233
+ If you want to load YAML config files then you will also need to install
234
+ :doc: `The YAML component</components/yaml> `.
235
+
231
236
The ``newsletter_manager `` and ``mailer `` services can be set up using config files:
232
237
233
238
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments