Cicalese has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311146

Change subject: Added SessionForRequest hook.
......................................................................

Added SessionForRequest hook.

Necessary for auto login in PluggableAuth extension, which needs to
inject code after a session has been created for a request. This can
not be done in a SessionProvider, since the session does not yet
exist.

Bug: T110464
Change-Id: Ieca2a8e04666dd6583311196f4089ac9acdf0ab1
---
M includes/session/SessionManager.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/46/311146/1

diff --git a/includes/session/SessionManager.php 
b/includes/session/SessionManager.php
index 87fdcd3..64a83a2 100644
--- a/includes/session/SessionManager.php
+++ b/includes/session/SessionManager.php
@@ -193,6 +193,7 @@
                } else {
                        $session = $this->getSessionFromInfo( $info, $request );
                }
+               \Hooks::run( 'SessionForRequest', [ $session ] );
                return $session;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/311146
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieca2a8e04666dd6583311196f4089ac9acdf0ab1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Cicalese <cical...@mitre.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to