Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f12302

Browse filesBrowse files
Added a note that YAML component needed to load YAML files into service container
1 parent 50d3360 commit 7f12302
Copy full SHA for 7f12302

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎components/dependency_injection/introduction.rst

Copy file name to clipboardExpand all lines: components/dependency_injection/introduction.rst
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ files. To do this you also need to install the Config component:
204204
* Install it via PEAR ( `pear.symfony.com/Config`);
205205
* Install it via Composer (`symfony/config` on Packagist).
206206

207-
Loading an xml config file:
207+
Loading an XML config file:
208208

209209
.. code-block:: php
210210
@@ -216,7 +216,7 @@ Loading an xml config file:
216216
$loader = new XmlFileLoader($container, new FileLocator(__DIR__));
217217
$loader->load('services.xml');
218218
219-
Loading a yaml config file:
219+
Loading a YAML config file:
220220

221221
.. code-block:: php
222222
@@ -228,6 +228,11 @@ Loading a yaml config file:
228228
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
229229
$loader->load('services.yml');
230230
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+
231236
The ``newsletter_manager`` and ``mailer`` services can be set up using config files:
232237

233238
.. configuration-block::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.