mediawiki-skins-Vector/includes/Hooks/HookRunner.php
Ammarpad 3452647071 Hook: Create HookRunner and interface for own hook
Bug: T348040
Change-Id: I63a7e71a06729dbf607ef9bb275896e42db1b6e0
2023-10-10 22:03:43 +00:00

27 lines
550 B
PHP

<?php
namespace MediaWiki\Skins\Vector\Hooks;
use MediaWiki\HookContainer\HookContainer;
/**
* @internal
*/
class HookRunner implements VectorSearchResourceLoaderConfigHook {
private HookContainer $hookContainer;
public function __construct( HookContainer $hookContainer ) {
$this->hookContainer = $hookContainer;
}
/**
* @inheritDoc
*/
public function onVectorSearchResourceLoaderConfig( array &$vectorSearchConfig ): void {
$this->hookContainer->run(
'VectorSearchResourceLoaderConfig',
[ &$vectorSearchConfig ]
);
}
}