mediawiki-skins-MinervaNeue/includes/Hooks/HookRunner.php
Umherirrender 903034de23 Create HookRunner class and the hook handler interface
Bug: T315823
Change-Id: I09c45ed939e103e6edb3a76623687574dcf0206f
2023-06-09 22:19:59 +02:00

32 lines
630 B
PHP

<?php
namespace MediaWiki\Minerva\Hooks;
use MediaWiki\HookContainer\HookContainer;
use MediaWiki\Minerva\SkinOptions;
use Skin;
/**
* This is a hook runner class, see docs/Hooks.md in core.
* @internal
*/
class HookRunner implements
SkinMinervaOptionsInitHook
{
private HookContainer $hookContainer;
public function __construct( HookContainer $hookContainer ) {
$this->hookContainer = $hookContainer;
}
/**
* @inheritDoc
*/
public function onSkinMinervaOptionsInit( Skin $skin, SkinOptions $skinOptions ) {
return $this->hookContainer->run(
'SkinMinervaOptionsInit',
[ $skin, $skinOptions ]
);
}
}