delete backend, starting over
This commit is contained in:
parent
babf9eb855
commit
f6a33cf620
51 changed files with 0 additions and 6655 deletions
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Auth\UseCases\Logout;
|
||||
|
||||
use App\Auth\SessionRepository;
|
||||
|
||||
class Logout
|
||||
{
|
||||
public function __construct(
|
||||
private SessionRepository $sessionRepo,
|
||||
) {
|
||||
}
|
||||
|
||||
public function execute(?string $token): void
|
||||
{
|
||||
if (! is_string($token) || $token === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->sessionRepo->deleteByToken($token);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue