MediaWiki
REL1_37
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
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition
MediaWikiServices.php:190
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition
MediaWikiServices.php:960
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition
MediaWikiServices.php:251
MediaWiki\HookContainer
Definition
DeprecatedHooks.php:23
includes
HookContainer
ProtectedHookAccessorTrait.php
Generated on Fri Apr 5 2024 23:40:19 for MediaWiki by
1.9.8