From 7f123023bb51309a443028e7275322d2fa40dd8d Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Thu, 2 Aug 2012 17:36:08 +0100 Subject: [PATCH] Added a note that YAML component needed to load YAML files into service container --- components/dependency_injection/introduction.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/dependency_injection/introduction.rst b/components/dependency_injection/introduction.rst index c2ee3407bbc..1cc6007a7ab 100644 --- a/components/dependency_injection/introduction.rst +++ b/components/dependency_injection/introduction.rst @@ -204,7 +204,7 @@ files. To do this you also need to install the Config component: * Install it via PEAR ( `pear.symfony.com/Config`); * Install it via Composer (`symfony/config` on Packagist). -Loading an xml config file: +Loading an XML config file: .. code-block:: php @@ -216,7 +216,7 @@ Loading an xml config file: $loader = new XmlFileLoader($container, new FileLocator(__DIR__)); $loader->load('services.xml'); -Loading a yaml config file: +Loading a YAML config file: .. code-block:: php @@ -228,6 +228,11 @@ Loading a yaml config file: $loader = new YamlFileLoader($container, new FileLocator(__DIR__)); $loader->load('services.yml'); +.. note:: + + If you want to load YAML config files then you will also need to install + :doc:`The YAML component`. + The ``newsletter_manager`` and ``mailer`` services can be set up using config files: .. configuration-block::