Просмотр исходного кода

[FrameworkBundle] fixed method signature

Fabien Potencier 14 лет назад
Родитель
Сommit
b1b3ce83ae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

+ 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
      * @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);
         $this['request']->setRequestFormat($format);