8000 Make twig ExceptionController conformed with ExceptionListener · symfony/symfony@a6a3c32 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6a3c32

Browse files
committed
Make twig ExceptionController conformed with ExceptionListener
1 parent e86fe91 commit a6a3c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ public function __construct(\Twig_Environment $twig, $debug)
3939
* @param Request $request The request
4040
* @param FlattenException $exception A FlattenException instance
4141
* @param DebugLoggerInterface $logger A DebugLoggerInterface instance
42-
* @param string $_format The format to use for rendering (html, xml, ...)
42+
* @param string $format The format to use for rendering (html, xml, ...)
4343
*
4444
* @return Response
4545
*
4646
* @throws \InvalidArgumentException When the exception template does not exist
4747
*/
48-
public function showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null, $_format = 'html')
48+
public function showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null, $format = 'html')
4949
{
5050
$currentContent = $this->getAndCleanOutputBuffering($request->headers->get('X-Php-Ob-Level', -1));
5151

5252
$code = $exception->getStatusCode();
5353

5454
return new Response($this->twig->render(
55-
$this->findTemplate($request, $_format, $code, $this->debug),
55+
$this->findTemplate($request, $format, $code, $this->debug),
5656
array(
5757
'status_code' => $code,
5858
'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',

0 commit comments

Comments
 (0)
0