Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / installer / Hook / LoadExtensionSchemaUpdatesHook.php
blob8630701027ee69b01286e36fb450c9329eba445a
1 <?php
3 namespace MediaWiki\Installer\Hook;
5 use MediaWiki\Installer\DatabaseUpdater;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "LoadExtensionSchemaUpdates" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface LoadExtensionSchemaUpdatesHook {
15 /**
16 * This hook is called during database installation and updates.
18 * Do not use this hook with a handler that uses a "services" or "optional_services"
19 * option in its ObjectFactory spec. It is called in a context where the global
20 * service locator is not initialised.
22 * @since 1.35
24 * @param DatabaseUpdater $updater DatabaseUpdater subclass
25 * @return bool|void True or no return value to continue or false to abort
27 public function onLoadExtensionSchemaUpdates( $updater );