From f2aebb6d684be0cd7fa3f71b3ed170da12478d84 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Thu, 27 Jun 2024 19:31:29 -0400 Subject: [PATCH] Move users into their own namespace. --- app/src/Bootstrap.php | 4 ++-- app/src/Controller/User/LoginUserAction.php | 2 +- app/src/Controller/User/RegisterUserAction.php | 2 +- app/src/Domain/Repository/{ => User}/UserRepository.php | 2 +- .../Domain/Repository/{ => User}/UserRepositoryInterface.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename app/src/Domain/Repository/{ => User}/UserRepository.php (98%) rename app/src/Domain/Repository/{ => User}/UserRepositoryInterface.php (88%) diff --git a/app/src/Bootstrap.php b/app/src/Bootstrap.php index b87460e..a998d68 100644 --- a/app/src/Bootstrap.php +++ b/app/src/Bootstrap.php @@ -24,8 +24,8 @@ use Slovocast\Configuration\DatabaseConnectionSchema; use Slovocast\Configuration\SessionSchema; use Twig\Error\LoaderError; -use Slovocast\Domain\Repository\UserRepositoryInterface; -use Slovocast\Domain\Repository\UserRepository; +use Slovocast\Domain\Repository\User\UserRepositoryInterface; +use Slovocast\Domain\Repository\User\UserRepository; use Slovocast\Infrastructure\User\UserAuthorizationInterface; use Slovocast\Infrastructure\User\BasicUserAuthorization; diff --git a/app/src/Controller/User/LoginUserAction.php b/app/src/Controller/User/LoginUserAction.php index 3d44126..eff121a 100644 --- a/app/src/Controller/User/LoginUserAction.php +++ b/app/src/Controller/User/LoginUserAction.php @@ -3,7 +3,7 @@ namespace Slovocast\Controller\User; use Slovocast\Controller\Controller; -use Slovocast\Domain\Repository\UserRepositoryInterface; +use Slovocast\Domain\Repository\User\UserRepositoryInterface; use Slovocast\Infrastructure\User\UserAuthorizationInterface; use Slovocast\Exception\EntityNotFoundException; use Psr\Http\Message\ResponseInterface as Response; diff --git a/app/src/Controller/User/RegisterUserAction.php b/app/src/Controller/User/RegisterUserAction.php index d92795a..5434669 100644 --- a/app/src/Controller/User/RegisterUserAction.php +++ b/app/src/Controller/User/RegisterUserAction.php @@ -5,7 +5,7 @@ namespace Slovocast\Controller\User; use Psr\Http\Message\ResponseInterface as Response; use Slovocast\Controller\Controller; use Slovocast\Domain\Entity\User; -use Slovocast\Domain\Repository\UserRepositoryInterface; +use Slovocast\Domain\Repository\User\UserRepositoryInterface; use Odan\Session\SessionInterface; class RegisterUserAction extends Controller diff --git a/app/src/Domain/Repository/UserRepository.php b/app/src/Domain/Repository/User/UserRepository.php similarity index 98% rename from app/src/Domain/Repository/UserRepository.php rename to app/src/Domain/Repository/User/UserRepository.php index cf1d4bf..7f4dde5 100644 --- a/app/src/Domain/Repository/UserRepository.php +++ b/app/src/Domain/Repository/User/UserRepository.php @@ -1,6 +1,6 @@