MediaWiki  master
MediaWiki\Hook\MediaWikiServicesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\MediaWikiServicesHook:

Public Member Functions

 onMediaWikiServices ( $services)
 This hook is called when a global MediaWikiServices instance is initialized. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "MediaWikiServices" to register handlers implementing this interface.

Stable to implement

Definition at line 14 of file MediaWikiServicesHook.php.

Member Function Documentation

◆ onMediaWikiServices()

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.

Since
1.35
Parameters
MediaWikiServices$services
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: