Revert "Allow reset of global services."
[lhc/web/wiklou.git] / docs / hooks.txt
index 9c14607..31e9d92 100644 (file)
@@ -1997,18 +1997,9 @@ $user: $wgUser
 $request: $wgRequest
 $mediaWiki: The $mediawiki object
 
-'MediaWikiServices': 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.
-$services: MediaWikiServices
-
-'MediaWikiServices::resetLegacyServices': Called when MediaWikiServices resets
-global instances of all well known services that are not yet managed by
-MediaWikiServices directly. Extension may use this hook to reset their own
-global service instances. However, it is preferred for extensions to have their
-services managed by MediaWikiServices directly, by registering them
-via $wgServiceWiringFiles or the 'MediaWikiServices' hook.
+'MediaWikiServices': Override services in the default MediaWikiServices instance.
+Extensions may use this to define, replace, or wrap existing services.
+However, the preferred way to define a new service is the $wgServiceWiringFiles array.
 $services: MediaWikiServices
 
 'MessageCache::get': When fetching a message. Can be used to override the key