X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionManager.php;h=b8e480f71168da562d1e0414415d024bc29fe156;hb=5111bd2def4e63ecc8a2acbf468e5c39029f9efd;hp=8ccb6d13d71812197ad4d4c739635855c5cabe61;hpb=39bdb0cb4905eaebd24ebb0ed22728fa4b94e0ee;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionManager.php b/includes/session/SessionManager.php index 8ccb6d13d7..b8e480f711 100644 --- a/includes/session/SessionManager.php +++ b/includes/session/SessionManager.php @@ -35,8 +35,15 @@ use WebRequest; /** * This serves as the entry point to the MediaWiki session handling system. * + * Most methods here are for internal use by session handling code. Other callers + * should only use getGlobalSession and the methods of SessionManagerInterface; + * the rest of the functionality is exposed via MediaWiki\Session\Session methods. + * + * To provide custom session handling, implement a MediaWiki\Session\SessionProvider. + * * @ingroup Session * @since 1.27 + * @see https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager */ final class SessionManager implements SessionManagerInterface { /** @var SessionManager|null */ @@ -819,9 +826,9 @@ final class SessionManager implements SessionManagerInterface { } /** - * Create a session corresponding to the passed SessionInfo + * Create a Session corresponding to the passed SessionInfo * @private For use by a SessionProvider that needs to specially create its - * own session. + * own Session. Most session providers won't need this. * @param SessionInfo $info * @param WebRequest $request * @return Session @@ -873,7 +880,7 @@ final class SessionManager implements SessionManagerInterface { $session->resetId(); } - \ScopedCallback::consume( $delay ); + \Wikimedia\ScopedCallback::consume( $delay ); return $session; } @@ -941,6 +948,7 @@ final class SessionManager implements SessionManagerInterface { /** * Reset the internal caching for unit testing + * @protected Unit tests only */ public static function resetCache() { if ( !defined( 'MW_PHPUNIT_TEST' ) ) {