wiki.techinc.nl/includes/user/Hook/UserLoadFromDatabaseHook.php
DannyS712 71a1f3f937 Hard deprecate UserLoadFromDatabase hook
Completely unused per codesearch, so in theory it
could be removed without deprecation, but there is
no rush

Bug: T277334
Change-Id: Id7e22c8e9f7f6ea6ed4c8c7cc10686ff58410694
2021-05-01 01:30:05 +00:00

26 lines
609 B
PHP

<?php
namespace MediaWiki\User\Hook;
use stdClass;
use User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserLoadFromDatabase" to register handlers implementing this interface.
*
* @deprecated since 1.37
* @ingroup Hooks
*/
interface UserLoadFromDatabaseHook {
/**
* This hook is called when loading a user from the database.
*
* @since 1.35
*
* @param User $user
* @param stdClass|bool &$s Database query object
* @return bool|void True or no return value to continue or false to abort
*/
public function onUserLoadFromDatabase( $user, &$s );
}