primo upload
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Vanguard\Repositories\Session;
|
||||
|
||||
interface SessionRepository
|
||||
{
|
||||
/**
|
||||
* Find session by id.
|
||||
* @param $sessionId
|
||||
* @return mixed
|
||||
*/
|
||||
public function find($sessionId);
|
||||
|
||||
/**
|
||||
* Get all active sessions for specified user.
|
||||
*
|
||||
* @param $userId
|
||||
* @return mixed
|
||||
*/
|
||||
public function getUserSessions($userId);
|
||||
|
||||
/**
|
||||
* Invalidate specified session for provided user
|
||||
*
|
||||
* @param $sessionId
|
||||
* @return mixed
|
||||
*/
|
||||
public function invalidateSession($sessionId);
|
||||
|
||||
/**
|
||||
* Invalidate all sessions for user with given id.
|
||||
* @param $userId
|
||||
* @return mixed
|
||||
*/
|
||||
public function invalidateAllSessionsForUser($userId);
|
||||
}
|
||||
Reference in New Issue
Block a user