Переглянути джерело

[Security] Fixed method calls on EventDispatcher

Bernhard Schussek 14 роки тому
батько
коміт
ffdc879624

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/ContextListener.php

@@ -49,7 +49,7 @@ class ContextListener implements ListenerInterface
         $this->contextKey = $contextKey;
 
         if (null !== $dispatcher) {
-            $dispatcher->connect(Events::onCoreResponse, $this);
+            $dispatcher->addEventListener(Events::onCoreResponse, $this);
         }
     }
 

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php

@@ -58,7 +58,7 @@ class ExceptionListener
      */
     public function register(EventDispatcherInterface $dispatcher)
     {
-        $dispatcher->connect(Events::onCoreException, $this);
+        $dispatcher->addEventListener(Events::onCoreException, $this);
     }
 
     /**