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

Added a note that YAML component needed to load YAML files into service ... #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added a note that YAML component needed to load YAML files into servi…
…ce container
  • Loading branch information
richardmiller-zz committed Aug 2, 2012
commit 7f123023bb51309a443028e7275322d2fa40dd8d
9 changes: 7 additions & 2 deletions 9 components/dependency_injection/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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</components/yaml>`.

The ``newsletter_manager`` and ``mailer`` services can be set up using config files:

.. configuration-block::
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.