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

[FrameworkBundle] fixed SecurityContext when security is disabled

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

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Security/FirewallContext.php

@@ -15,7 +15,7 @@ class FirewallContext
     protected $listeners;
     protected $exceptionListener;
 
-    public function __construct(array $listeners, ExceptionListener $exceptionListener)
+    public function __construct(array $listeners, ExceptionListener $exceptionListener = null)
     {
         $this->listeners = $listeners;
         $this->exceptionListener = $exceptionListener;
@@ -25,4 +25,4 @@ class FirewallContext
     {
         return array($this->listeners, $this->exceptionListener);
     }
-}
+}