Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Updated sidebar to use Debug component #2593

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
May 5, 2013
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
12 changes: 7 additions & 5 deletions cookbook/configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ environment by using this code and changing the environment string.
not the application should run in "debug mode". Regardless of the environment,
a Symfony2 application can be run with debug mode set to ``true`` or
``false``. This affects many things in the application, such as whether
or not errors should be displayed or if cache files are dynamically rebuilt
on each request. Though not a requirement, debug mode is generally set
to ``true`` for the ``dev`` and ``test`` environments and ``false`` for
the ``prod`` environment.
or not the cache files are dynamically rebuilt on each request. Though not
a requirement, debug mode is generally set to ``true`` for the ``dev`` and
``test`` environments and ``false`` for the ``prod`` environment.

Internally, the value of the debug mode becomes the ``kernel.debug``
parameter used inside the :doc:`service container </book/service_container>`.
Expand All @@ -206,12 +205,15 @@ environment by using this code and changing the environment string.
$container->loadFromExtension('doctrine', array(
'dbal' => array(
'logging' => '%kernel.debug%',

// ...
),
// ...
));

As of Symfony 2.3, showing errors or not no longer depends on the debug
mode. You'll need to enable that in your front controller by calling
:method:`Symfony\\Component\\Debug\\Debug::enable`.

.. index::
single: Environments; Creating a new environment

Expand Down