< Manual:Hooks
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.27.0. Please see MediaWiki\Auth\PrimaryAuthenticationProvider for an alternative way to use this feature. |
AuthPluginSetup | |
---|---|
Available from version 1.9.1 Update or replace authentication plugin object ($wgAuth). | |
Define function: | public static function onAuthPluginSetup( $auth ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"AuthPluginSetup": "MyExtensionHooks::onAuthPluginSetup"
}
}
|
Called from: | File(s): Setup.php |
Interface: | AuthPluginSetupHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:AuthPluginSetup extensions.
Details
This hook gives a chance for an extension to set it programmatically to a variable class.
$auth
: the $wgAuth object
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.