diff --git a/src/App/Dto/System/SimpleMessageDto.php b/src/App/Dto/System/SimpleMessageDto.php index 03b9d12c..a9e7afc5 100644 --- a/src/App/Dto/System/SimpleMessageDto.php +++ b/src/App/Dto/System/SimpleMessageDto.php @@ -5,7 +5,7 @@ use OpenApi\Attributes as OA; #[OA\Schema()] -class SimpleMessageDto +readonly class SimpleMessageDto { #[OA\Property( description: 'A message to the API user', diff --git a/src/App/Dto/Topic/TopicCreateFailureMessageDto.php b/src/App/Dto/Topic/TopicCreateFailureMessageDto.php index d384659c..bcb99bb8 100644 --- a/src/App/Dto/Topic/TopicCreateFailureMessageDto.php +++ b/src/App/Dto/Topic/TopicCreateFailureMessageDto.php @@ -5,7 +5,7 @@ use OpenApi\Attributes as OA; #[OA\Schema()] -class TopicCreateFailureMessageDto +readonly class TopicCreateFailureMessageDto { #[OA\Property( properties: [ @@ -14,4 +14,9 @@ class TopicCreateFailureMessageDto type: 'object' )] public array $topic; + + public function __construct(array $topic) + { + $this->topic = $topic; + } } diff --git a/src/App/Dto/UserContent/UserLogInDataDto.php b/src/App/Dto/UserContent/UserLogInDataDto.php index c8611b2c..e7c8f154 100644 --- a/src/App/Dto/UserContent/UserLogInDataDto.php +++ b/src/App/Dto/UserContent/UserLogInDataDto.php @@ -5,7 +5,7 @@ use OpenApi\Attributes as OA; #[OA\Schema(required: ['username', 'password'])] -class UserLogInDataDto +readonly class UserLogInDataDto { #[OA\Property( description: 'The User name', @@ -18,4 +18,10 @@ class UserLogInDataDto type: 'string', )] public string $password; + + public function __construct(string $username, string $password) + { + $this->username = $username; + $this->password = $password; + } } diff --git a/src/App/Factory/DatabaseFactory.php b/src/App/Factory/DatabaseFactory.php index 34d95672..9b202356 100644 --- a/src/App/Factory/DatabaseFactory.php +++ b/src/App/Factory/DatabaseFactory.php @@ -5,7 +5,7 @@ use PDO; use Psr\Container\ContainerInterface; -class DatabaseFactory +readonly class DatabaseFactory { public function __invoke(ContainerInterface $container): PDO { diff --git a/src/App/Factory/LoggerFactory.php b/src/App/Factory/LoggerFactory.php index c6a68002..eba3f8ae 100644 --- a/src/App/Factory/LoggerFactory.php +++ b/src/App/Factory/LoggerFactory.php @@ -17,7 +17,7 @@ use function mkdir; use function rtrim; -class LoggerFactory +readonly class LoggerFactory { public function __invoke(ContainerInterface $container): LoggerInterface { diff --git a/src/App/Factory/MailFactory.php b/src/App/Factory/MailFactory.php index 6b266ac0..532d1ce6 100644 --- a/src/App/Factory/MailFactory.php +++ b/src/App/Factory/MailFactory.php @@ -6,7 +6,7 @@ use Symfony\Component\Mailer\Mailer; use Symfony\Component\Mailer\Transport; -class MailFactory +readonly class MailFactory { public function __invoke(ContainerInterface $container): Mailer { diff --git a/src/App/Factory/QueryFactory.php b/src/App/Factory/QueryFactory.php index a0ed1940..1d5f09ac 100644 --- a/src/App/Factory/QueryFactory.php +++ b/src/App/Factory/QueryFactory.php @@ -6,7 +6,7 @@ use PDO; use Psr\Container\ContainerInterface; -class QueryFactory +readonly class QueryFactory { public function __invoke(ContainerInterface $container): Query { diff --git a/src/App/Factory/UuidFactory.php b/src/App/Factory/UuidFactory.php index 8fb99ff5..d749b460 100644 --- a/src/App/Factory/UuidFactory.php +++ b/src/App/Factory/UuidFactory.php @@ -6,7 +6,7 @@ use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; -class UuidFactory +readonly class UuidFactory { public function __invoke(ContainerInterface $container): UuidInterface { diff --git a/src/App/Handler/Authentication/LoginHandlerFactory.php b/src/App/Handler/Authentication/LoginHandlerFactory.php index b2fccf9f..d367888c 100644 --- a/src/App/Handler/Authentication/LoginHandlerFactory.php +++ b/src/App/Handler/Authentication/LoginHandlerFactory.php @@ -4,7 +4,7 @@ use Psr\Container\ContainerInterface; -class LoginHandlerFactory +readonly class LoginHandlerFactory { public function __invoke(ContainerInterface $container): LoginHandler { diff --git a/src/App/Handler/Authentication/LogoutHandler.php b/src/App/Handler/Authentication/LogoutHandler.php index b3c72215..5f650213 100644 --- a/src/App/Handler/Authentication/LogoutHandler.php +++ b/src/App/Handler/Authentication/LogoutHandler.php @@ -9,7 +9,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class LogoutHandler implements RequestHandlerInterface +readonly class LogoutHandler implements RequestHandlerInterface { /** * not implementet yet diff --git a/src/App/Handler/Authentication/UserPasswordChangeHandler.php b/src/App/Handler/Authentication/UserPasswordChangeHandler.php index 65c28441..cef85270 100644 --- a/src/App/Handler/Authentication/UserPasswordChangeHandler.php +++ b/src/App/Handler/Authentication/UserPasswordChangeHandler.php @@ -8,7 +8,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class UserPasswordChangeHandler implements RequestHandlerInterface +readonly class UserPasswordChangeHandler implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/src/App/Handler/Authentication/UserPasswordForgottonHandlerFactory.php b/src/App/Handler/Authentication/UserPasswordForgottonHandlerFactory.php index a37c28b8..55695ad6 100644 --- a/src/App/Handler/Authentication/UserPasswordForgottonHandlerFactory.php +++ b/src/App/Handler/Authentication/UserPasswordForgottonHandlerFactory.php @@ -5,7 +5,7 @@ use Psr\Container\ContainerInterface; use Symfony\Component\Mailer\Mailer; -class UserPasswordForgottonHandlerFactory +readonly class UserPasswordForgottonHandlerFactory { public function __invoke(ContainerInterface $container): UserPasswordForgottonHandler { diff --git a/src/App/Handler/Authentication/UserPasswordVerifyTokenHandler.php b/src/App/Handler/Authentication/UserPasswordVerifyTokenHandler.php index e30a21a9..8f9d9e76 100644 --- a/src/App/Handler/Authentication/UserPasswordVerifyTokenHandler.php +++ b/src/App/Handler/Authentication/UserPasswordVerifyTokenHandler.php @@ -8,7 +8,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class UserPasswordVerifyTokenHandler implements RequestHandlerInterface +readonly class UserPasswordVerifyTokenHandler implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/src/App/Handler/Authentication/UserRegisterSubmitHandler.php b/src/App/Handler/Authentication/UserRegisterSubmitHandler.php index ac470b2e..0d96e0bf 100644 --- a/src/App/Handler/Authentication/UserRegisterSubmitHandler.php +++ b/src/App/Handler/Authentication/UserRegisterSubmitHandler.php @@ -10,7 +10,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class UserRegisterSubmitHandler implements RequestHandlerInterface +readonly class UserRegisterSubmitHandler implements RequestHandlerInterface { #[OA\Post(path: '/api/user/register', summary: 'Register a user with e-mail', tags: ['User Control'])] #[OA\RequestBody( diff --git a/src/App/Handler/Event/EventCreateHandler.php b/src/App/Handler/Event/EventCreateHandler.php index 9e494561..c4f4c73c 100644 --- a/src/App/Handler/Event/EventCreateHandler.php +++ b/src/App/Handler/Event/EventCreateHandler.php @@ -8,7 +8,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class EventCreateHandler implements RequestHandlerInterface +readonly class EventCreateHandler implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/src/App/Handler/Event/EventNameHandler.php b/src/App/Handler/Event/EventNameHandler.php index a2146889..8730357c 100644 --- a/src/App/Handler/Event/EventNameHandler.php +++ b/src/App/Handler/Event/EventNameHandler.php @@ -9,7 +9,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class EventNameHandler implements RequestHandlerInterface +readonly class EventNameHandler implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/src/App/Handler/Event/EventParticipantUnsubscribeHandler.php b/src/App/Handler/Event/EventParticipantUnsubscribeHandler.php index b04b5aec..d0747b0c 100644 --- a/src/App/Handler/Event/EventParticipantUnsubscribeHandler.php +++ b/src/App/Handler/Event/EventParticipantUnsubscribeHandler.php @@ -8,7 +8,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -class EventParticipantUnsubscribeHandler implements RequestHandlerInterface +readonly class EventParticipantUnsubscribeHandler implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/src/App/Handler/System/ApiMeHandler.php b/src/App/Handler/System/ApiMeHandler.php index d2bef05a..a1d0788e 100644 --- a/src/App/Handler/System/ApiMeHandler.php +++ b/src/App/Handler/System/ApiMeHandler.php @@ -26,7 +26,7 @@ openapi: '3.1.0', security: [['bearerAuth' => []]], )] -class ApiMeHandler implements RequestHandlerInterface +readonly class ApiMeHandler implements RequestHandlerInterface { #[OA\Get( path: '/api/user/me', diff --git a/src/App/Handler/System/PingHandler.php b/src/App/Handler/System/PingHandler.php index 6db0446b..136aa8f8 100644 --- a/src/App/Handler/System/PingHandler.php +++ b/src/App/Handler/System/PingHandler.php @@ -11,7 +11,7 @@ use function time; -class PingHandler implements RequestHandlerInterface +readonly class PingHandler implements RequestHandlerInterface { #[OA\Get( path: '/api/ping', diff --git a/src/App/Hydrator/ClassMethodsHydratorFactory.php b/src/App/Hydrator/ClassMethodsHydratorFactory.php index 642566f1..6d19e078 100644 --- a/src/App/Hydrator/ClassMethodsHydratorFactory.php +++ b/src/App/Hydrator/ClassMethodsHydratorFactory.php @@ -5,7 +5,7 @@ use Laminas\Hydrator\ClassMethodsHydrator; use Psr\Container\ContainerInterface; -class ClassMethodsHydratorFactory +readonly class ClassMethodsHydratorFactory { public function __invoke(ContainerInterface $container): ClassMethodsHydrator { diff --git a/src/App/Hydrator/DateTimeFormatterStrategyFactory.php b/src/App/Hydrator/DateTimeFormatterStrategyFactory.php index 968843c2..dbd406c7 100644 --- a/src/App/Hydrator/DateTimeFormatterStrategyFactory.php +++ b/src/App/Hydrator/DateTimeFormatterStrategyFactory.php @@ -5,7 +5,7 @@ use Laminas\Hydrator\Strategy\DateTimeFormatterStrategy; use Psr\Container\ContainerInterface; -class DateTimeFormatterStrategyFactory +readonly class DateTimeFormatterStrategyFactory { public function __invoke(ContainerInterface $container): DateTimeFormatterStrategy { diff --git a/src/App/Hydrator/NullableStrategyFactory.php b/src/App/Hydrator/NullableStrategyFactory.php index ac1675c0..31ef58aa 100644 --- a/src/App/Hydrator/NullableStrategyFactory.php +++ b/src/App/Hydrator/NullableStrategyFactory.php @@ -6,7 +6,7 @@ use Laminas\Hydrator\Strategy\NullableStrategy; use Psr\Container\ContainerInterface; -class NullableStrategyFactory +readonly class NullableStrategyFactory { public function __invoke(ContainerInterface $container): NullableStrategy { diff --git a/src/App/Listener/LoggingErrorListenerDelegatorFactory.php b/src/App/Listener/LoggingErrorListenerDelegatorFactory.php index a9954d0d..5e47a9d8 100644 --- a/src/App/Listener/LoggingErrorListenerDelegatorFactory.php +++ b/src/App/Listener/LoggingErrorListenerDelegatorFactory.php @@ -5,7 +5,7 @@ use Laminas\Stratigility\Middleware\ErrorHandler; use Psr\Container\ContainerInterface; -class LoggingErrorListenerDelegatorFactory +readonly class LoggingErrorListenerDelegatorFactory { public function __invoke(ContainerInterface $container, string $name, callable $callback): ErrorHandler { diff --git a/src/App/Listener/LoggingErrorListenerFactory.php b/src/App/Listener/LoggingErrorListenerFactory.php index 3363ed8e..0f3d2602 100644 --- a/src/App/Listener/LoggingErrorListenerFactory.php +++ b/src/App/Listener/LoggingErrorListenerFactory.php @@ -5,7 +5,7 @@ use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; -class LoggingErrorListenerFactory +readonly class LoggingErrorListenerFactory { public function __invoke(ContainerInterface $container): LoggingErrorListener { diff --git a/src/App/Middleware/Authentication/IsLoggedInAuthenticationMiddleware.php b/src/App/Middleware/Authentication/IsLoggedInAuthenticationMiddleware.php index ec4d5b62..0596a887 100644 --- a/src/App/Middleware/Authentication/IsLoggedInAuthenticationMiddleware.php +++ b/src/App/Middleware/Authentication/IsLoggedInAuthenticationMiddleware.php @@ -11,7 +11,7 @@ use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; -class IsLoggedInAuthenticationMiddleware implements MiddlewareInterface +readonly class IsLoggedInAuthenticationMiddleware implements MiddlewareInterface { public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { diff --git a/src/App/Middleware/Authentication/JwtAuthenticationMiddlewareFactory.php b/src/App/Middleware/Authentication/JwtAuthenticationMiddlewareFactory.php index 89399a6f..cc9a4af0 100644 --- a/src/App/Middleware/Authentication/JwtAuthenticationMiddlewareFactory.php +++ b/src/App/Middleware/Authentication/JwtAuthenticationMiddlewareFactory.php @@ -6,7 +6,7 @@ use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; -class JwtAuthenticationMiddlewareFactory +readonly class JwtAuthenticationMiddlewareFactory { public function __invoke(ContainerInterface $container): JwtAuthenticationMiddleware { diff --git a/src/App/Middleware/Event/EventCreateMiddlewareFactory.php b/src/App/Middleware/Event/EventCreateMiddlewareFactory.php index a92a7820..d61e885e 100644 --- a/src/App/Middleware/Event/EventCreateMiddlewareFactory.php +++ b/src/App/Middleware/Event/EventCreateMiddlewareFactory.php @@ -9,7 +9,7 @@ use Laminas\Hydrator\Strategy\HydratorStrategy; use Psr\Container\ContainerInterface; -class EventCreateMiddlewareFactory +readonly class EventCreateMiddlewareFactory { public function __invoke(ContainerInterface $container): EventCreateMiddleware { diff --git a/src/App/Middleware/System/HttpExceptionMiddleware.php b/src/App/Middleware/System/HttpExceptionMiddleware.php index 70d0ea7d..d2801bc0 100644 --- a/src/App/Middleware/System/HttpExceptionMiddleware.php +++ b/src/App/Middleware/System/HttpExceptionMiddleware.php @@ -9,7 +9,7 @@ use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; -class HttpExceptionMiddleware implements MiddlewareInterface +readonly class HttpExceptionMiddleware implements MiddlewareInterface { public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { diff --git a/src/App/Service/Authentication/ApiAccessService.php b/src/App/Service/Authentication/ApiAccessService.php index 514caded..fd2a0cee 100644 --- a/src/App/Service/Authentication/ApiAccessService.php +++ b/src/App/Service/Authentication/ApiAccessService.php @@ -2,7 +2,7 @@ namespace App\Service\Authentication; -class ApiAccessService +readonly class ApiAccessService { public function __construct( private readonly array $apiAccessConfig, diff --git a/src/App/Service/Authentication/ApiAccessServiceFactory.php b/src/App/Service/Authentication/ApiAccessServiceFactory.php index 44b23298..2c8f934c 100644 --- a/src/App/Service/Authentication/ApiAccessServiceFactory.php +++ b/src/App/Service/Authentication/ApiAccessServiceFactory.php @@ -4,7 +4,7 @@ use Psr\Container\ContainerInterface; -class ApiAccessServiceFactory +readonly class ApiAccessServiceFactory { public function __invoke(ContainerInterface $container): ApiAccessService { diff --git a/src/App/Service/Authentication/LoginAuthenticationService.php b/src/App/Service/Authentication/LoginAuthenticationService.php index 6484d9f6..4a80875c 100644 --- a/src/App/Service/Authentication/LoginAuthenticationService.php +++ b/src/App/Service/Authentication/LoginAuthenticationService.php @@ -6,7 +6,7 @@ use function password_verify; -class LoginAuthenticationService +readonly class LoginAuthenticationService { public function isUserDataCorrect(?User $user, string $password): bool { diff --git a/src/App/Service/EMail/TopicCreateEMailServiceFactory.php b/src/App/Service/EMail/TopicCreateEMailServiceFactory.php index 65bfc2e1..b231a896 100644 --- a/src/App/Service/EMail/TopicCreateEMailServiceFactory.php +++ b/src/App/Service/EMail/TopicCreateEMailServiceFactory.php @@ -5,7 +5,7 @@ use Psr\Container\ContainerInterface; use Symfony\Component\Mailer\Mailer; -class TopicCreateEMailServiceFactory +readonly class TopicCreateEMailServiceFactory { public function __invoke(ContainerInterface $container): TopicCreateEMailService { diff --git a/src/App/Service/Event/EventService.php b/src/App/Service/Event/EventService.php index 962bafed..dac0e41c 100644 --- a/src/App/Service/Event/EventService.php +++ b/src/App/Service/Event/EventService.php @@ -8,11 +8,11 @@ use Fig\Http\Message\StatusCodeInterface as HTTP; use Psr\Log\InvalidArgumentException; -class EventService +readonly class EventService { public function __construct( - private readonly EventRepository $repository, - private readonly ReflectionHydrator $hydrator, + private EventRepository $repository, + private ReflectionHydrator $hydrator, ) { } diff --git a/src/App/Service/Event/EventServiceFactory.php b/src/App/Service/Event/EventServiceFactory.php index 3ff9acdf..7ac221fb 100644 --- a/src/App/Service/Event/EventServiceFactory.php +++ b/src/App/Service/Event/EventServiceFactory.php @@ -10,7 +10,7 @@ use Laminas\Hydrator\Strategy\DateTimeFormatterStrategy; use Psr\Container\ContainerInterface; -class EventServiceFactory +readonly class EventServiceFactory { public function __invoke(ContainerInterface $container): EventService { diff --git a/src/App/Service/Participant/ParticipantServiceFactory.php b/src/App/Service/Participant/ParticipantServiceFactory.php index 403a76b6..e4caaf0b 100644 --- a/src/App/Service/Participant/ParticipantServiceFactory.php +++ b/src/App/Service/Participant/ParticipantServiceFactory.php @@ -7,7 +7,7 @@ use Laminas\Hydrator\Strategy\DateTimeFormatterStrategy; use Psr\Container\ContainerInterface; -class ParticipantServiceFactory +readonly class ParticipantServiceFactory { public function __invoke(ContainerInterface $container): ParticipantService { diff --git a/src/App/Service/Project/ProjectServiceFactory.php b/src/App/Service/Project/ProjectServiceFactory.php index b8dc8355..1381683d 100644 --- a/src/App/Service/Project/ProjectServiceFactory.php +++ b/src/App/Service/Project/ProjectServiceFactory.php @@ -8,7 +8,7 @@ use Laminas\Hydrator\Strategy\DateTimeFormatterStrategy; use Psr\Container\ContainerInterface; -class ProjectServiceFactory +readonly class ProjectServiceFactory { public function __invoke(ContainerInterface $container): ProjectService { diff --git a/src/App/Service/System/TokenService.php b/src/App/Service/System/TokenService.php index 5214beaf..fcef0392 100644 --- a/src/App/Service/System/TokenService.php +++ b/src/App/Service/System/TokenService.php @@ -5,7 +5,7 @@ use function bin2hex; use function openssl_random_pseudo_bytes; -class TokenService +readonly class TokenService { public function generateToken(): string { diff --git a/src/App/Service/Topic/TopicPoolService.php b/src/App/Service/Topic/TopicPoolService.php index 2c43d695..a4be0911 100644 --- a/src/App/Service/Topic/TopicPoolService.php +++ b/src/App/Service/Topic/TopicPoolService.php @@ -11,11 +11,11 @@ use JetBrains\PhpStorm\ArrayShape; use PDOException; -class TopicPoolService +readonly class TopicPoolService { public function __construct( - private readonly TopicPoolRepository $repository, - private readonly ReflectionHydrator $hydrator, + private TopicPoolRepository $repository, + private ReflectionHydrator $hydrator, ) { } diff --git a/src/App/Service/Topic/TopicPoolServiceFactory.php b/src/App/Service/Topic/TopicPoolServiceFactory.php index 2c4e42ea..ab2673e1 100644 --- a/src/App/Service/Topic/TopicPoolServiceFactory.php +++ b/src/App/Service/Topic/TopicPoolServiceFactory.php @@ -7,7 +7,7 @@ use App\System\Hydrator\Strategy\UuidStrategy; use Psr\Container\ContainerInterface; -class TopicPoolServiceFactory +readonly class TopicPoolServiceFactory { public function __invoke(ContainerInterface $container): TopicPoolService { diff --git a/src/App/Service/User/UserServiceFactory.php b/src/App/Service/User/UserServiceFactory.php index 1c85de4f..efb1de6f 100644 --- a/src/App/Service/User/UserServiceFactory.php +++ b/src/App/Service/User/UserServiceFactory.php @@ -11,7 +11,7 @@ use Psr\Container\ContainerInterface; use Ramsey\Uuid\Uuid; -class UserServiceFactory +readonly class UserServiceFactory { public function __invoke(ContainerInterface $container): UserService { diff --git a/src/App/System/Hydrator/Strategy/UuidStrategy.php b/src/App/System/Hydrator/Strategy/UuidStrategy.php index 94b35878..393d1d44 100644 --- a/src/App/System/Hydrator/Strategy/UuidStrategy.php +++ b/src/App/System/Hydrator/Strategy/UuidStrategy.php @@ -10,7 +10,7 @@ use function is_string; use function sprintf; -class UuidStrategy implements StrategyInterface +readonly class UuidStrategy implements StrategyInterface { public function extract($value, ?object $object = null) { diff --git a/src/App/System/Logger/BaseInformationProcessor.php b/src/App/System/Logger/BaseInformationProcessor.php index 0bc663b1..030c9a69 100644 --- a/src/App/System/Logger/BaseInformationProcessor.php +++ b/src/App/System/Logger/BaseInformationProcessor.php @@ -11,7 +11,7 @@ use const INPUT_GET; use const INPUT_SERVER; -class BaseInformationProcessor implements ProcessorInterface +readonly class BaseInformationProcessor implements ProcessorInterface { public function process(array $event): array { diff --git a/tests/Unit/Authentication/Middleware/ApiAccessMiddlewareTest.php b/tests/Unit/Authentication/Middleware/ApiAccessMiddlewareTest.php index 066ca882..bb3e5a40 100644 --- a/tests/Unit/Authentication/Middleware/ApiAccessMiddlewareTest.php +++ b/tests/Unit/Authentication/Middleware/ApiAccessMiddlewareTest.php @@ -7,7 +7,7 @@ use Laminas\Diactoros\Response\JsonResponse; use Psr\Http\Message\ResponseInterface; use Test\Unit\App\Middleware\AbstractMiddleware; -use Test\Unit\Authentication\Mock\Service\MockApiAccessService; +use Test\Unit\Mock\Service\MockApiAccessService; class ApiAccessMiddlewareTest extends AbstractMiddleware { diff --git a/tests/Unit/Authentication/Mock/Service/MockApiAccessService.php b/tests/Unit/Mock/Service/MockApiAccessService.php similarity index 73% rename from tests/Unit/Authentication/Mock/Service/MockApiAccessService.php rename to tests/Unit/Mock/Service/MockApiAccessService.php index 2539e03a..0256106e 100644 --- a/tests/Unit/Authentication/Mock/Service/MockApiAccessService.php +++ b/tests/Unit/Mock/Service/MockApiAccessService.php @@ -1,10 +1,10 @@