Explorar o código

[HttpKernel] fixed previous commit

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
36d60a4a87

+ 4 - 2
src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php

@@ -32,7 +32,7 @@ class ExceptionHandler
      *
      *
      * @return The registered exception handler
      * @return The registered exception handler
      */
      */
-    static public function register($level = null)
+    static public function register()
     {
     {
         $handler = new static();
         $handler = new static();
 
 
@@ -52,7 +52,9 @@ class ExceptionHandler
     {
     {
         $exception = FlattenException::create($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)
     private function getContent($exception)