Rabbi_Gerzi/backend/app/Auth/UseCases/Logout/Logout.php
Yisroel Baum 56ddba707d
format: fix psr12 style issues
phpcbf auto-fixes: string concatenation spacing, single-line class braces, closing brace placement.
2026-05-17 09:45:26 +03:00

18 lines
302 B
PHP

<?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);
}
}