extracted interfaces for services, to aid in creating tests

This commit is contained in:
2026-06-05 15:15:21 -04:00
parent 0813323ac2
commit 7cf7e04d17
10 changed files with 81 additions and 20 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Service;
use App\Data\Payload;
use Psr\Cache\InvalidArgumentException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
interface LoginInterface {
/** @throws InvalidArgumentException */
public function checkToken(Payload $payload, Request $request): ?Response;
}