mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-22 12:42:43 +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 ]
|
||
|
);
|
||
|
}
|
||
|
}
|