implement Logout use case

thin pass-through to SessionRepository->deleteByToken. test
green; 33 tests pass.
This commit is contained in:
yisroel 2026-05-06 15:16:03 +03:00
parent 30e97864c8
commit 526a1b8f61
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -0,0 +1,17 @@
<?php
namespace App\Auth\UseCases\Logout;
use App\Auth\SessionRepository;
class Logout
{
public function __construct(
private SessionRepository $sessionRepo,
) {}
public function execute(string $token): void
{
$this->sessionRepo->deleteByToken($token);
}
}