Skip to content

Commit 202171b

Browse files
committed
Changes for correctness
1 parent 9690dce commit 202171b

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

book/page_creation.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,21 @@ also load specific bundles based on the selected environment. For example,
4242
Symfony2 comes with the WebProfilerBundle (described below), enabled only
4343
in the ``dev`` and ``test`` environments.
4444

45-
To make your application respond faster, Symfony2 maintains a cache under the
46-
``app/cache/`` directory. In the ``dev`` environment, this cache is flushed
47-
automatically whenever you make changes to any code or configuration. But that's
48-
not the case in the ``prod`` environment, where performance is key. That's why you
49-
should always use the development environment when developing your application.
50-
5145
Symfony2 comes with two web-accessible front controllers: ``app_dev.php``
5246
provides the ``dev`` environment, and ``app.php`` provides the ``prod`` environment.
5347
All web accesses to Symfony2 normally go through one of these front controllers.
5448
(The ``test`` environment is normally only used when running unit tests, and so
5549
doesn't have a dedicated front controller. The console tool also provides a
5650
front controller that can be used with any environment.)
5751

52+
When the front controller initializes the kernel, it provides two parameters:
53+
the environment, and also whether the kernel should run in debug mode.
54+
To make your application respond faster, Symfony2 maintains a cache under the
55+
``app/cache/`` directory. When in debug mode is enabled (such as ``app_dev.php``
56+
does by default), this cache is flushed automatically whenever you make changes
57+
to any code or configuration. When running in debug mode, Symfony2 runs
58+
slower, but your changes are reflected without having to manually clear the
59+
cache.
5860

5961
.. index::
6062
single: Page creation; Example

quick_tour/the_big_picture.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Symfony2 developer's best friend.
419419
.. image:: /images/quick_tour/web_debug_toolbar.png
420420
:align: center
421421

422-
What you see initially is only the tip of the iceberg; click on the long
422+
What you see initially is only the tip of the iceberg; click on the
423423
hexadecimal number (the session token) to reveal yet another very useful
424424
Symfony2 debugging tool: the profiler.
425425

@@ -429,14 +429,17 @@ Symfony2 debugging tool: the profiler.
429429
.. note::
430430

431431
You can also get more information quickly by hovering over the items
432-
on the Web Debug Toolbar.
433-
434-
When enabled (by default in the dev and test environments), the Profiler
435-
records a great deal of information on each request made to your application.
436-
It allows you to view details of each request, including, but not limited to,
437-
GET or POST parameters and the request headers; logs; an execution timeline;
438-
information on the currently logged in user; Doctrine queries; and more.
439-
432+
on the Web Debug Toolbar, or clicking them to go to their respective
433+
pages in the profiler.
434+
435+
When loaded (by default in the dev and test environments), and enabled
436+
(by default, only in the dev environment) the Profiler provides an interface
437+
to view a great deal of information recorded on each request made to your
438+
application. It allows you to view details of each request, including, but
439+
not limited to, GET or POST parameters and the request headers; logs; an
440+
execution timeline; information on the currently logged in user; Doctrine
441+
queries; and more.
442+
440443
Of course, it would be unwise to have these tools enabled when you deploy
441444
your application, so by default, the profiler is not enabled in the ``prod``
442445
environment. (In fact, its bundle is not even loaded).

0 commit comments

Comments
 (0)