3 namespace MediaWiki\Installer\Hook
;
5 use MediaWiki\Installer\DatabaseUpdater
;
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
14 interface LoadExtensionSchemaUpdatesHook
{
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.
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 );