@@ -39,20 +39,20 @@ public function __construct(\Twig_Environment $twig, $debug)
39
39
* @param Request $request The request
40
40
* @param FlattenException $exception A FlattenException instance
41
41
* @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, ...)
43
43
*
44
44
* @return Response
45
45
*
46
46
* @throws \InvalidArgumentException When the exception template does not exist
47
47
*/
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 ' )
49
49
{
50
50
$ currentContent = $ this ->getAndCleanOutputBuffering ($ request ->headers ->get ('X-Php-Ob-Level ' , -1 ));
51
51
52
52
$ code = $ exception ->getStatusCode ();
53
53
54
54
return new Response ($ this ->twig ->render (
55
- $ this ->findTemplate ($ request , $ _format , $ code , $ this ->debug ),
55
+ $ this ->findTemplate ($ request , $ format , $ code , $ this ->debug ),
56
56
array (
57
57
'status_code ' => $ code ,
58
58
'status_text ' => isset (Response::$ statusTexts [$ code ]) ? Response::$ statusTexts [$ code ] : '' ,
0 commit comments