Browse Source

[FrameworkBundle] fixed method signature

Fabien Potencier 14 năm trước cách đây
mục cha
commit
b1b3ce83ae

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

@@ -33,7 +33,7 @@ class ExceptionController extends Controller
      *
      * @throws \InvalidArgumentException When the exception template does not exist
      */
-    public function exceptionAction(FlattenException $exception, DebugLoggerInterface $logger, $format, $embedded = false)
+    public function exceptionAction(FlattenException $exception, DebugLoggerInterface $logger = null, $format = 'html', $embedded = false)
     {
         $this['request']->setRequestFormat($format);