1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

normalize some mismatching hook function definitions to match base Plugin class

This commit is contained in:
Andrew Dolgov
2021-11-14 11:11:49 +03:00
parent 81a10f69bc
commit 0a2dcacbcf
7 changed files with 33 additions and 16 deletions

View File

@@ -3,14 +3,16 @@ interface IAuthModule {
/**
* @param string $login
* @param string $password
* optional third string $service
* @param string $service
* @return int|false user_id
*/
function authenticate($login, $password); // + optional third parameter: $service
function authenticate($login, $password, $service = '');
/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
* @param mixed $args = ($login, $password, $service)
* @param string $login
* @param string $password
* @param string $service
* @return int|false user_id
*/
function hook_auth_user(...$args);
function hook_auth_user($login, $password, $service = '');
}