Skip to content

Adding link to the config component docs from extension cookbook #1723

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
Sep 18, 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
14 changes: 7 additions & 7 deletions cookbook/bundles/extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ as integration of other related components:
.. configuration-block::

.. code-block:: yaml

framework:
# ...
form: true

.. code-block:: xml

<framework:config>
<framework:form />
</framework:config>

.. code-block:: php

$container->loadFromExtension('framework', array(
// ...
'form' => true,
Expand Down Expand Up @@ -306,7 +306,7 @@ option is passed and set to true::
// ... prepare your $config variable

$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

if (isset($config['enabled']) && $config['enabled']) {
$loader->load('services.xml');
}
Expand Down Expand Up @@ -477,9 +477,9 @@ configuration arrays together.

The ``Configuration`` class can be much more complicated than shown here,
supporting array nodes, "prototype" nodes, advanced validation, XML-specific
normalization and advanced merging. The best way to see this in action is
to checkout out some of the core Configuration classes, such as the one from
the `FrameworkBundle Configuration`_ or the `TwigBundle Configuration`_.
normalization and advanced merging. You can read more about this in :doc:`the Config Component documentation</components/config/definition>`.
You can also see it action by checking out some of the core Configuration classes,
such as the one from the `FrameworkBundle Configuration`_ or the `TwigBundle Configuration`_.

.. index::
pair: Convention; Configuration
Expand Down