mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 10:27:31 +00:00
903034de23
Bug: T315823 Change-Id: I09c45ed939e103e6edb3a76623687574dcf0206f
32 lines
630 B
PHP
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 ]
|
|
);
|
|
}
|
|
}
|