Review hooks in includes/user/Hook Bug: T246855 Change-Id: I0c56b6f2b73dec5491ff81619a2f7bce6c8bebad
23 lines
502 B
PHP
23 lines
502 B
PHP
<?php
|
|
|
|
namespace MediaWiki\User\Hook;
|
|
|
|
use User;
|
|
|
|
/**
|
|
* @stable for implementation
|
|
* @ingroup Hooks
|
|
*/
|
|
interface UserLoadAfterLoadFromSessionHook {
|
|
/**
|
|
* This hook is called to authenticate users on external or environmental means
|
|
*
|
|
* This hook is called after session is loaded.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param User $user user object being loaded
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onUserLoadAfterLoadFromSession( $user );
|
|
}
|