| SetupAfterCache | |
|---|---|
| Available fromversion 1.14.0 Called in Setup.php, after cache objects are set | |
| Define function: | publicstaticfunctiononSetupAfterCache(){...} |
| Attach hook: | Inextension.json:{"Hooks":{"SetupAfterCache":"MediaWiki\\Extension\\MyExtension\\Hooks::onSetupAfterCache"}} |
| Called from: | File(s):Setup.php |
| Interface: | SetupAfterCacheHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:SetupAfterCache extensions.
BeforeInitialize andApiBeforeMain hooks instead.$wgExtensionFunctions variable.MediaWikiServices hook can be used as a stop-gap alternative for cases where a registration callback is not sufficient, but it is not entirely safe.