Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 1 commit intosymfony:masterfromwouterj:issue_2569
May 5, 2013
Merged
Changes fromall 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 deletionscookbook/configuration/environments.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp