Преглед на файлове

[HttpKernel] fixed previous commit

Fabien Potencier преди 14 години
родител
ревизия
36d60a4a87
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php

+ 4 - 2
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 @@ class ExceptionHandler
     {
         $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)