MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onMediaWikiServices ( $services) | |
This hook is called when a global MediaWikiServices instance is initialized. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "MediaWikiServices" to register handlers implementing this interface.
Definition at line 19 of file MediaWikiServicesHook.php.
MediaWiki\Hook\MediaWikiServicesHook::onMediaWikiServices | ( | $services | ) |
This hook is called when a global MediaWikiServices instance is initialized.
Extensions may use this to define, replace, or wrap services. However, the preferred way to define a new service is the $wgServiceWiringFiles array.
Example:
MediaWikiServices | $services |
Implemented in MediaWiki\HookContainer\HookRunner.