Skip to content

Commit 6181390

Browse files
committed
Merge pull request #1617 from richardmiller/adding_yaml_note_to_di
Added a note that YAML component needed to load YAML files into service ...
2 parents 39fdeb1 + 7f12302 commit 6181390

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/dependency_injection/introduction.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Setting Up the Container with Configuration Files
200200
As well as setting up the services using PHP as above you can also use configuration
201201
files. To do this you also need to install :doc:`the Config Component</components/config/introduction>`.
202202

203-
Loading an xml config file:
203+
Loading an XML config file:
204204

205205
.. code-block:: php
206206
@@ -212,7 +212,7 @@ Loading an xml config file:
212212
$loader = new XmlFileLoader($container, new FileLocator(__DIR__));
213213
$loader->load('services.xml');
214214
215-
Loading a yaml config file:
215+
Loading a YAML config file:
216216

217217
.. code-block:: php
218218
@@ -224,6 +224,11 @@ Loading a yaml config file:
224224
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
225225
$loader->load('services.yml');
226226
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+
227232
The ``newsletter_manager`` and ``mailer`` services can be set up using config files:
228233

229234
.. configuration-block::

0 commit comments

Comments
 (0)