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

Commit1d50d04

Browse files
committed
Merge pull request#2593 from WouterJ/issue_2569
Updated sidebar to use Debug component
2 parents80c3fb3 +789b8f8 commit1d50d04

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎cookbook/configuration/environments.rst‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,9 @@ environment by using this code and changing the environment string.
177177
not the application should run in "debug mode". Regardless of the environment,
178178
a Symfony2 application can be run with debug mode set to ``true`` or
179179
``false``. This affects many things in the application, such as whether
180-
or not errors should be displayed or if cache files are dynamically rebuilt
181-
on each request. Though not a requirement, debug mode is generally set
182-
to ``true`` for the ``dev`` and ``test`` environments and ``false`` for
183-
the ``prod`` environment.
180+
or not the cache files are dynamically rebuilt on each request. Though not
181+
a requirement, debug mode is generally set to ``true`` for the ``dev`` and
182+
``test`` environments and ``false`` for the ``prod`` environment.
184183

185184
Internally, the value of the debug mode becomes the ``kernel.debug``
186185
parameter used inside the:doc:`service container</book/service_container>`.
@@ -206,12 +205,15 @@ environment by using this code and changing the environment string.
206205
$container->loadFromExtension('doctrine', array(
207206
'dbal' => array(
208207
'logging' => '%kernel.debug%',
209-
210208
// ...
211209
),
212210
// ...
213211
));
214212
213+
As of Symfony 2.3, showing errors or not no longer depends on the debug
214+
mode. You'll need to enable that in your front controller by calling
215+
:method:`Symfony\\Component\\Debug\\Debug::enable`.
216+
215217
..index::
216218
single: Environments; Creating a new environment
217219

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp