mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-21 04:02:53 +00:00
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 ]
|
||
|
);
|
||
|
}
|
||
|
}
|