mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
3452647071
Bug: T348040 Change-Id: I63a7e71a06729dbf607ef9bb275896e42db1b6e0
27 lines
550 B
PHP
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 ]
|
|
);
|
|
}
|
|
}
|