HookRunner: mark as @internal

Core's HookRunner should only be used by core.
This gives us the freedom to split it up later.

Change-Id: If465ab338ff066b76f7430a35a37c5dc890a4cf6
This commit is contained in:
daniel 2020-05-11 20:16:56 +02:00
parent 582b526982
commit 3893ceeff4

View file

@ -9,13 +9,15 @@ use ResourceLoaderContext;
/**
* This class provides an implementation of the core hook interfaces,
* forwarding hook calls to HookContainer for dispatch to extensions.
* It is intended for use within MediaWiki core only. Extensions that
* need a hook runner should create one for the hooks they need to run.
*
* To use it, create a new HookRunner object from a HookContainer obtained
* by dependency injection, or as a last resort, from the global service
* container. Then call the relevant method on the object:
* ( new HookRunner( $hookContainer ) )->onSomeHook( $param );
*
* @newable
* @internal
*/
class HookRunner implements
\MediaWiki\Auth\Hook\AuthManagerLoginAuthenticateAuditHook,