| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\RenameUser\Hook; |
| 4 | |
| 5 | /** |
| 6 | * This is a hook handler interface, see docs/Hooks.md. |
| 7 | * Use the hook name "RenameUserComplete" to register handlers implementing this interface. |
| 8 | * |
| 9 | * Between MediaWiki 1.36 and 1.39, this interface was part of the Renameuser extension, |
| 10 | * with the namespace MediaWiki\Extension\Renameuser\Hook. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | * @since 1.40 |
| 15 | */ |
| 16 | interface RenameUserCompleteHook { |
| 17 | |
| 18 | /** |
| 19 | * Called after a user was renamed. |
| 20 | * |
| 21 | * @param int $uid The user ID |
| 22 | * @param string $old The old username |
| 23 | * @param string $new The new username |
| 24 | */ |
| 25 | public function onRenameUserComplete( int $uid, string $old, string $new ): void; |
| 26 | |
| 27 | } |