@@ -98,6 +98,9 @@ discard block |
||
98 | 98 | return $this->getStatusCodeFromThrowable($exception); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param integer $code |
|
103 | + */ |
|
101 | 104 | private function createViewFromThrowable(\Throwable $exception, $code, array $templateData): View |
102 | 105 | { |
103 | 106 | $view = new View($exception, $code, $exception instanceof HttpExceptionInterface ? $exception->getHeaders() : []); |
@@ -133,6 +136,7 @@ discard block |
||
133 | 136 | * This code comes from Symfony and should be synchronized on a regular basis |
134 | 137 | * see src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php |
135 | 138 | * |
139 | + * @param null|string $startObLevel |
|
136 | 140 | * @return string |
137 | 141 | */ |
138 | 142 | private function getAndCleanOutputBuffering($startObLevel) |
@@ -11,13 +11,11 @@ |
||
11 | 11 | |
12 | 12 | namespace FOS\RestBundle\Controller; |
13 | 13 | |
14 | -use FOS\RestBundle\Exception\FlattenException as FosFlattenException; |
|
15 | 14 | use FOS\RestBundle\Util\ExceptionValueMap; |
16 | 15 | use FOS\RestBundle\View\View; |
17 | 16 | use FOS\RestBundle\View\ViewHandlerInterface; |
18 | 17 | use Symfony\Component\HttpFoundation\Request; |
19 | 18 | use Symfony\Component\HttpFoundation\Response; |
20 | -use Symfony\Component\ErrorHandler\Exception\FlattenException; |
|
21 | 19 | use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; |
22 | 20 | use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; |
23 | 21 |