소스 검색

[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)