X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionProvider.php;h=80a400b057d443053e76f473553693690596ea74;hb=ce1bd86a4b3f563d6407a2a960211b3dcaca70ac;hp=781fc337a05e7d84aa235d1cdd5f0a4b20e306b4;hpb=4905504faded8f85a9b3d68b27da5c9e2f11bd06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionProvider.php b/includes/session/SessionProvider.php index 781fc337a0..80a400b057 100644 --- a/includes/session/SessionProvider.php +++ b/includes/session/SessionProvider.php @@ -141,9 +141,9 @@ abstract class SessionProvider implements SessionProviderInterface, LoggerAwareI * unless only max-priority makes sense. * * @warning This will be called early in the MediaWiki setup process, - * before $wgUser, $wgLang, $wgOut, $wgParser, $wgTitle, and corresponding - * pieces of the main RequestContext are set up! If you try to use these, - * things *will* break. + * before $wgUser, $wgLang, $wgOut, $wgTitle, the global parser, and + * corresponding pieces of the main RequestContext are set up! If you try + * to use these, things *will* break. * @note The SessionProvider must not attempt to auto-create users. * MediaWiki will do this later (when it's safe) if the chosen session has * a user with a valid name but no ID. @@ -402,6 +402,9 @@ abstract class SessionProvider implements SessionProviderInterface, LoggerAwareI * } * @endcode * + * Note that the $options parameter to addVaryHeader has been deprecated + * since 1.34, and should be `null` or an empty array. + * * @protected For use by \MediaWiki\Session\SessionManager only * @return array */ @@ -469,7 +472,7 @@ abstract class SessionProvider implements SessionProviderInterface, LoggerAwareI * @note If self::__toString() is overridden, this will likely need to be * overridden as well. * @warning This will be called early during MediaWiki startup. Do not - * use $wgUser, $wgLang, $wgOut, $wgParser, or their equivalents via + * use $wgUser, $wgLang, $wgOut, the global Parser, or their equivalents via * RequestContext from this method! * @return \Message */