Explorar o código

[FrameworkBundle] fixed SecurityContext when security is disabled

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
a8e0a22011

+ 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);
     }
-}
+}