Skip to content

Commit abc28e7

Browse files
committed
minor symfony#5812 Remove duplicate and confusing info about testing error pages (carlos-granados)
This PR was submitted for the 2.6 branch but it was merged into the 2.7 branch instead (closes symfony#5812). Discussion ---------- Remove duplicate and confusing info about testing error pages We added new information about using the ExceptionController to test the error pages but the old info was not deleted. In this way, the section was duplicated and offered information which seemed to be contradictory. I have removed the old info. Commits ------- 4007ba1 Remove duplicate and confusing info about testing error pages
2 parents d83a2d8 + 4007ba1 commit abc28e7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

cookbook/controller/error_pages.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,16 @@ is undefined. The solution is to add the following check before using this funct
142142
{# ... #}
143143
{% endif %}
144144
145+
.. _testing-error-pages:
146+
145147
Testing Error Pages during Development
146148
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147149

148150
While you're in the development environment, Symfony shows the big *exception*
149151
page instead of your shiny new customized error page. So, how can you see
150152
what it looks like and debug it?
151153

152-
The recommended solution is to use a third-party bundle called `WebfactoryExceptionsBundle`_.
153-
This bundle provides a special test controller that allows you to easily display
154-
custom error pages for arbitrary HTTP status codes even when ``kernel.debug`` is
155-
set to ``true``.
156-
157-
.. _testing-error-pages:
158-
159-
Testing Error Pages during Development
160-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161-
162-
The default ``ExceptionController`` also allows you to preview your
154+
Fortunately, the default ``ExceptionController`` allows you to preview your
163155
*error* pages during development.
164156

165157
.. versionadded:: 2.6

0 commit comments

Comments
 (0)