mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
20 lines
525 B
PHP
20 lines
525 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\components\Authentication;
|
|
|
|
use common\components\Authentication\Entities\AuthenticationResult;
|
|
use common\components\Authentication\Entities\Credentials;
|
|
use common\models\AccountSession;
|
|
|
|
interface LoginServiceInterface {
|
|
|
|
/**
|
|
* @throws \common\components\Authentication\Exceptions\AuthenticationException
|
|
*/
|
|
public function loginByCredentials(Credentials $credentials): AuthenticationResult;
|
|
|
|
public function logout(AccountSession $session): void;
|
|
|
|
}
|