MediaWiki
REL1_39
ProtectedHookAccessorTrait.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\HookContainer
;
4
5
use
MediaWiki\MediaWikiServices
;
6
13
trait ProtectedHookAccessorTrait {
20
protected
function
getHookContainer() {
21
return
MediaWikiServices::getInstance
()->
getHookContainer
();
22
}
23
32
protected
function
getHookRunner() {
33
return
new
HookRunner( $this->getHookContainer() );
34
}
35
}
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:212
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition
MediaWikiServices.php:1054
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition
MediaWikiServices.php:273
MediaWiki\HookContainer
Definition
DeprecatedHooks.php:23
includes
HookContainer
ProtectedHookAccessorTrait.php
Generated on Mon Nov 25 2024 06:55:40 for MediaWiki by
1.10.0