*/
interface ListenerInterface
@@ -39,4 +39,15 @@ function register(EventDispatcherInterface $dispatcher);
* @param EventDispatcherInterface $dispatcher
*/
function unregister(EventDispatcherInterface $dispatcher);
+
+ /**
+ * The implementation must reconnect this listener to all events it needs to
+ * handle after the core.security event.
+ *
+ * This method is called only if a sub request required the listeners to be
+ * unregistered.
+ *
+ * @param EventDispatcherInterface $dispatcher
+ */
+ function reconnect(EventDispatcherInterface $dispatcher);
}
\ No newline at end of file
diff --git a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
index 1f5bc4524ce8..46a1b360f0d5 100644
--- a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
+++ b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
@@ -78,6 +78,13 @@ public function unregister(EventDispatcherInterface $dispatcher)
{
}
+ /**
+ * {@inheritDoc}
+ */
+ public function reconnect(EventDispatcherInterface $dispatcher)
+ {
+ }
+
/**
* Performs the logout if requested
*
diff --git a/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php b/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
index db9b6232c33e..41dbfc519e15 100644
--- a/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
+++ b/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
@@ -76,6 +76,14 @@ public function unregister(EventDispatcherInterface $dispatcher)
$dispatcher->disconnect('core.response', array($this, 'updateCookies'));
}
+ /**
+ * {@inheritDoc}
+ */
+ public function reconnect(EventDispatcherInterface $dispatcher)
+ {
+ $dispatcher->connect('core.response', array($this, 'updateCookies'), 0);
+ }
+
/**
* Handles remember-me cookie based authentication.
*
diff --git a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
index 4df51f0ed0ee..d8d4bc8a1b73 100644
--- a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
+++ b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
@@ -85,6 +85,13 @@ public function unregister(EventDispatcherInterface $dispatcher)
{
}
+ /**
+ * {@inheritDoc}
+ */
+ public function reconnect(EventDispatcherInterface $dispatcher)
+ {
+ }
+
/**
* Handles digest authentication.
*
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy