X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=2b5e1e0d7ea5f0aa45b80791c987f4fbef84fb2a;hb=27769e3fe42fd1cc6116e50cb70ec152b9ab204c;hp=135a11363c2413a5a14a9afc5881f98699bc774e;hpb=5bd4dd1f262683cff76d8b47d19c0b263bf01774;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 135a11363c..2b5e1e0d7e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -741,8 +741,9 @@ viewing. redirect was followed. &$article: target article (object) -'AuthPluginAutoCreate': Called when creating a local account for an user logged -in from an external authentication method. +'AuthPluginAutoCreate': DEPRECATED! Use the 'LocalUserCreated' hook instead. +Called when creating a local account for an user logged in from an external +authentication method. $user: User object created locally 'AuthPluginSetup': Update or replace authentication plugin object ($wgAuth). @@ -1645,6 +1646,11 @@ Return false to stop further processing of the tag $reader: XMLReader object $revisionInfo: Array of information +'ImportLogInterwikiLink': Hook to change the interwiki link used in log entries +and edit summaries for transwiki imports. +&$fullInterwikiPrefix: Interwiki prefix, may contain colons. +&$pageTitle: String that contains page title. + 'ImportSources': Called when reading from the $wgImportSources configuration variable. Can be used to lazy-load the import sources list. &$importSources: The value of $wgImportSources. Modify as necessary. See the @@ -2574,6 +2580,20 @@ $targetUser: the user whom to send watchlist email notification $title: the page title $enotif: EmailNotification object +'SessionCheckInfo': Validate a MediaWiki\Session\SessionInfo as it's being +loaded from storage. Return false to prevent it from being used. +&$reason: String rejection reason to be logged +$info: MediaWiki\Session\SessionInfo being validated +$request: WebRequest being loaded from +$metadata: Array|false Metadata array for the MediaWiki\Session\Session +$data: Array|false Data array for the MediaWiki\Session\Session + +'SessionMetadata': Add metadata to a session being saved. +$backend: MediaWiki\Session\SessionBackend being saved. +&$metadata: Array Metadata to be stored. Add new keys here. +$requests: Array of WebRequests potentially being saved to. Generally 0-1 real + request and 0+ FauxRequests. + 'SetupAfterCache': Called in Setup.php, after cache objects are set 'ShortPagesQuery': Allow extensions to modify the query used by @@ -3292,8 +3312,9 @@ $name: user name $user: user object &$s: database query object -'UserLoadFromSession': Called to authenticate users on external/environmental -means; occurs before session is loaded. +'UserLoadFromSession': DEPRECATED! Create a MediaWiki\Session\SessionProvider instead. +Called to authenticate users on external/environmental means; occurs before +session is loaded. $user: user object being loaded &$result: set this to a boolean value to abort the normal authentication process @@ -3384,9 +3405,13 @@ $user: User object 'UserSaveSettings': Called when saving user settings. $user: User object -'UserSetCookies': Called when setting user cookies. +'UserSetCookies': DEPRECATED! If you're trying to replace core session cookie +handling, you want to create a subclass of MediaWiki\Session\CookieSessionProvider +instead. Otherwise, you can no longer count on user data being saved to cookies +versus some other mechanism. +Called when setting user cookies. $user: User object -&$session: session array, will be added to $_SESSION +&$session: session array, will be added to the session &$cookies: cookies array mapping cookie name to its value 'UserSetEmail': Called when changing user email address.