MediaWiki  master
MediaWiki\Hook\MediaWikiServicesHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 11 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: