* Make the code easier to own and maintain by being part of a topical area of expertise rather than a generic catch-all bucket. This also helps Gerrit team dashboards, [[mw:Git/Reviewers]] subscription patterns, more meaningful component prefix for [[mw:Commit_message_guidelines]]. * Prep for possible CODEOWNERS adoption. * Prep for T166010 to give us better PSR-4 namespaces that we won't have to break/migrate again shortly after for the above. Bug: T225756 Change-Id: I62c701d574d2a79365b1c5350f92bef47770e3ce
26 lines
771 B
PHP
26 lines
771 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "LocalisationCacheRecache" to register handlers implementing this interface.
|
|
*
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface LocalisationCacheRecacheHook {
|
|
/**
|
|
* Called when loading the localisation data into
|
|
* cache.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param ?mixed $cache The LocalisationCache object
|
|
* @param ?mixed $code language code
|
|
* @param ?mixed &$alldata The localisation data from core and extensions
|
|
* @param ?mixed $unused Used to be $purgeBlobs, removed in 1.34
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onLocalisationCacheRecache( $cache, $code, &$alldata, $unused );
|
|
}
|