| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Installer\Hook; |
| 4 | |
| 5 | use MediaWiki\Installer\DatabaseUpdater; |
| 6 | |
| 7 | /** |
| 8 | * This is a hook handler interface, see docs/Hooks.md. |
| 9 | * Use the hook name "LoadExtensionSchemaUpdates" to register handlers implementing this interface. |
| 10 | * |
| 11 | * @stable to implement |
| 12 | * @ingroup Hooks |
| 13 | */ |
| 14 | interface LoadExtensionSchemaUpdatesHook { |
| 15 | /** |
| 16 | * This hook is called during database installation and updates. |
| 17 | * |
| 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. |
| 21 | * |
| 22 | * @since 1.35 |
| 23 | * |
| 24 | * @param DatabaseUpdater $updater DatabaseUpdater subclass |
| 25 | * @return bool|void True or no return value to continue or false to abort |
| 26 | */ |
| 27 | public function onLoadExtensionSchemaUpdates( $updater ); |
| 28 | } |