File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 4
4
use Symfony \Component \Config \Loader \LoaderInterface ;
5
5
use Symfony \Component \ClassLoader \DebugUniversalClassLoader ;
6
6
use Symfony \Component \HttpKernel \Debug \ErrorHandler ;
7
+ use Symfony \Component \HttpKernel \Debug \ExceptionHandler ;
7
8
8
9
class AppKernel extends Kernel
9
10
{
@@ -38,6 +39,7 @@ public function init()
38
39
39
40
DebugUniversalClassLoader::enable ();
40
41
ErrorHandler::register ();
42
+ ExceptionHandler::register ();
41
43
} else {
42
44
ini_set ('display_errors ' , 0 );
43
45
}
Original file line number Diff line number Diff line change 14
14
require_once __DIR__ .'/../app/AppKernel.php ' ;
15
15
16
16
use Symfony \Component \HttpFoundation \Request ;
17
- use Symfony \Component \HttpKernel \Debug \DebugExceptionHandler ;
18
-
19
- set_exception_handler (new DebugExceptionHandler ());
20
17
21
18
$ kernel = new AppKernel ('dev ' , true );
22
19
$ kernel ->loadClassCache ();
You can’t perform that action at this time.
0 commit comments