File tree Expand file tree Collapse file tree 6 files changed +19
-6
lines changed
contributing/documentation Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ while you're reading the Symfony documentation.
39
39
and you'll be redirected to GitHub:
40
40
41
41
.. image :: /_images/contributing/docs-github-edit-page.png
42
+ :align: center
43
+ :class: with-browser
42
44
43
45
**Step 2. ** Edit the contents, describe your changes and click on the
44
46
**Propose file change ** button.
@@ -48,6 +50,8 @@ and you'll be redirected to GitHub:
48
50
also display a preview of your changes:
49
51
50
52
.. image :: /_images/contributing/docs-github-create-pr.png
53
+ :align: center
54
+ :class: with-browser
51
55
52
56
If everything is correct, click on the **Create pull request ** button.
53
57
Original file line number Diff line number Diff line change @@ -15,13 +15,17 @@ with lots of debug information to help you quickly discover the root problem:
15
15
16
16
.. image :: /_images/controller/error_pages/exceptions-in-dev-environment.png
17
17
:alt: A typical exception page in the development environment
18
+ :align: center
19
+ :class: with-browser
18
20
19
21
Since these pages contain a lot of sensitive internal information, Symfony won't
20
22
display them in the production environment. Instead, it'll show a simple and
21
23
generic **error page **:
22
24
23
25
.. image :: /_images/controller/error_pages/errors-in-prod-environment.png
24
26
:alt: A typical error page in the production environment
27
+ :align: center
28
+ :class: with-browser
25
29
26
30
Error pages for the production environment can be customized in different ways
27
31
depending on your needs:
@@ -273,19 +277,19 @@ will be passed two parameters:
273
277
Instead of creating a new exception controller from scratch you can, of course,
274
278
also extend the default :class: `Symfony\\ Bundle\\ TwigBundle\\ Controller\\ ExceptionController `.
275
279
In that case, you might want to override one or both of the ``showAction() `` and
276
- ``findTemplate() `` methods. The latter one locates the template to be used.
280
+ ``findTemplate() `` methods. The latter one locates the template to be used.
277
281
278
282
.. note ::
279
-
283
+
280
284
In case of extending the
281
285
:class: `Symfony\\ Bundle\\ TwigBundle\\ Controller\\ ExceptionController ` you
282
286
may configure a service to pass the Twig environment and the ``debug `` flag
283
- to the constructor.
284
-
287
+ to the constructor.
288
+
285
289
.. configuration-block ::
286
-
290
+
287
291
.. code-block :: yaml
288
-
292
+
289
293
# app/config/services.yml
290
294
services :
291
295
app.exception_controller :
Original file line number Diff line number Diff line change @@ -175,13 +175,15 @@ developer's best friend!
175
175
176
176
.. image :: /_images/quick_tour/web_debug_toolbar.png
177
177
:align: center
178
+ :class: with-browser
178
179
179
180
But what you see initially is only the tip of the iceberg; click on any
180
181
of the bar sections to open the profiler and get much more detailed information
181
182
about the request, the query parameters, security details and database queries:
182
183
183
184
.. image :: /_images/quick_tour/profiler.png
184
185
:align: center
186
+ : class: with-browser
185
187
186
188
This tool provides so much internal information about your application that
187
189
you may be worried about your visitors accessing sensible information. Symfony
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ Welcome Page of Symfony:
137
137
.. image :: /_images/quick_tour/welcome.png
138
138
:align: center
139
139
:alt: Symfony Welcome Page
140
+ :class: with-browser
140
141
141
142
If you see a blank page or an error page instead of the Welcome Page, there is
142
143
a directory permission misconfiguration. The solution to this problem is
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ using a deprecated feature. When visiting your application in the
41
41
in your browser, these notices are shown in the web dev toolbar:
42
42
43
43
.. image :: /_images/install/deprecations-in-profiler.png
44
+ :align: center
45
+ :class: with-browser
44
46
45
47
Of course ultimately, you want to stop using the deprecated functionality.
46
48
Sometimes, this is easy: the warning might tell you exactly what to change.
You can’t perform that action at this time.
0 commit comments