Skip to content

Best Practices: Update link title to match cookbook article title #4529

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

Closed
wants to merge 2 commits into from
Closed
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
19 changes: 8 additions & 11 deletions best_practices/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ add an extra layer of configuration that's not needed because you don't need
or want these configuration values to change on each server.

The configuration options defined in the ``config.yml`` file usually vary from
one `execution environment`_ to another. That's why Symfony already includes
``app/config/config_dev.yml`` and ``app/config/config_prod.yml`` files so
that you can override specific values for each environment.
one :doc:`/cookbook/configuration/environments` to another. That's why Symfony
already includes ``app/config/config_dev.yml`` and ``app/config/config_prod.yml``
files so that you can override specific values for each environment.

Constants vs Configuration Options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -158,10 +158,10 @@ Semantic Configuration: Don't Do It

Don't define a semantic dependency injection configuration for your bundles.

As explained in `How to Expose a semantic Configuration for a Bundle`_ article,
Symfony bundles have two choices on how to handle configuration: normal service
configuration through the ``services.yml`` file and semantic configuration
through a special ``*Extension`` class.
As explained in :doc:`/cookbook/bundles/extension` article, Symfony bundles
have two choices on how to handle configuration: normal service configuration
through the ``services.yml`` file and semantic configuration through a special
``*Extension`` class.

Although semantic configuration is much more powerful and provides nice features
such as configuration validation, the amount of work needed to define that
Expand All @@ -174,10 +174,7 @@ Moving Sensitive Options Outside of Symfony Entirely
When dealing with sensitive options, like database credentials, we also recommend
that you store them outside the Symfony project and make them available
through environment variables. Learn how to do it in the following article:
`How to Set external Parameters in the Service Container`_
:doc:`/cookbook/configuration/external_parameters`

.. _`feature toggles`: http://en.wikipedia.org/wiki/Feature_toggle
.. _`execution environment`: http://symfony.com/doc/current/cookbook/configuration/environments.html
.. _`constant() function`: http://twig.sensiolabs.org/doc/functions/constant.html
.. _`How to Expose a semantic Configuration for a Bundle`: http://symfony.com/doc/current/cookbook/bundles/extension.html
.. _`How to Set external Parameters in the Service Container`: http://symfony.com/doc/current/cookbook/configuration/external_parameters.html