Explorar el Código

[HttpKernel] fixed previous commit

Fabien Potencier hace 14 años
padre
commit
36d60a4a87
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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)