Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
145b48a0
Commit
145b48a0
authored
Jun 03, 2013
by
Jérôme Macias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced new symfony Debug component for error_handler cookbook
parent
c2148890
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/cookbook/error_handler.rst
doc/cookbook/error_handler.rst
+4
-4
No files found.
doc/cookbook/error_handler.rst
View file @
145b48a0
...
@@ -16,13 +16,13 @@ user to register them.
...
@@ -16,13 +16,13 @@ user to register them.
Registering the ErrorHandler
Registering the ErrorHandler
----------------------------
----------------------------
Fortunately,
Silex ships with an ``ErrorHandler`` (it's part of the
Fortunately,
the `Symfony/Debug` package has an `ErrorHandler` that solves this
``HttpKernel`` package) that solves this issue. It converts all errors to
issue. It converts all errors to exceptions, and exceptions can be caught by
exceptions, and exceptions can be caught by
Silex.
Silex.
You register it by calling the static ``register`` method::
You register it by calling the static ``register`` method::
use Symfony\Component\
HttpKernel\
Debug\ErrorHandler;
use Symfony\Component\Debug\ErrorHandler;
ErrorHandler::register();
ErrorHandler::register();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment