add session repository interface
This commit is contained in:
parent
b37e80147c
commit
503df8be7a
1 changed files with 10 additions and 0 deletions
10
app/Auth/SessionRepository.php
Normal file
10
app/Auth/SessionRepository.php
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Auth;
|
||||||
|
|
||||||
|
interface SessionRepository
|
||||||
|
{
|
||||||
|
public function create(CreateSessionDto $dto): Session;
|
||||||
|
public function findByToken(string $token): ?Session;
|
||||||
|
public function deleteByToken(string $token): void;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue