From 36d60a4a877d1d5c01b7ad58f4bbfec509b83392 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 13 May 2011 14:18:58 +0200 Subject: [PATCH] [HttpKernel] fixed previous commit --- src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php b/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php index 99ca47406437..8edc07012e1c 100644 --- a/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php +++ b/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php @@ -32,7 +32,7 @@ class ExceptionHandler * * @return The registered exception handler */ - static public function register($level = null) + static public function register() { $handler = new static(); @@ -52,7 +52,9 @@ public function handle(\Exception $exception) { $exception = FlattenException::create($exception); - return new Response($this->decorate($exception, $this->getContent($exception)), 500); + $response = new Response($this->decorate($exception, $this->getContent($exception)), 500); + + $response->send(); } private function getContent($exception)