Skip to content

Commit

Permalink
rename Core Directory to System
Browse files Browse the repository at this point in the history
  • Loading branch information
BibaltiK committed Feb 3, 2024
1 parent 4ebd483 commit 87d78b0
Show file tree
Hide file tree
Showing 23 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion config/pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Middleware\Authentication\ApiAccessMiddleware;
use App\Middleware\Authentication\JwtAuthenticationMiddleware;
use App\Middleware\Core\HttpExceptionMiddleware;
use App\Middleware\System\HttpExceptionMiddleware;
use App\Middleware\User\UpdateLastUserActionTimeMiddleware;
use Laminas\Stratigility\Middleware\ErrorHandler;
use Mezzio\Application;
Expand Down
8 changes: 4 additions & 4 deletions config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use Psr\Container\ContainerInterface;

return static function (Mezzio\Application $app, MiddlewareFactory $factory, ContainerInterface $container): void {
$app->get('/api/testmail', \App\Handler\Core\TestMailHandler::class, \App\Handler\Core\TestMailHandler::class);
$app->get('/api/ping[/]', \App\Handler\Core\PingHandler::class, \App\Handler\Core\PingHandler::class);
$app->get('/api/testmail', \App\Handler\System\TestMailHandler::class, \App\Handler\System\TestMailHandler::class);
$app->get('/api/ping[/]', \App\Handler\System\PingHandler::class, \App\Handler\System\PingHandler::class);

/** ToDo OpenApi */
$app->get(
Expand Down Expand Up @@ -90,9 +90,9 @@
$app->get(
'/api/user/me[/]',
[
\App\Handler\Core\ApiMeHandler::class,
\App\Handler\System\ApiMeHandler::class,
],
\App\Handler\Core\ApiMeHandler::class
\App\Handler\System\ApiMeHandler::class
);
/** ToDo OpenApi */
$app->post(
Expand Down
6 changes: 3 additions & 3 deletions src/App/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use App\Service\Authentication\ApiAccessService;
use App\Service\Authentication\ApiAccessServiceFactory;
use App\Service\Authentication\LoginAuthenticationService;
use App\Service\Core\TokenService;
use App\Service\System\TokenService;
use App\Service\EMail\TopicCreateEMailService;
use App\Service\EMail\TopicCreateEMailServiceFactory;
use App\Service\Event\EventService;
Expand Down Expand Up @@ -93,7 +93,7 @@ public function getDependencies(): array
Handler\Event\EventParticipantSubscribeHandler::class => ConfigAbstractFactory::class,
Handler\Topic\TopicCreateHandler::class => ConfigAbstractFactory::class,
Handler\User\UserHandler::class => ConfigAbstractFactory::class,
Handler\Core\TestMailHandler::class => ConfigAbstractFactory::class,
Handler\System\TestMailHandler::class => ConfigAbstractFactory::class,

Listener\LoggingErrorListener::class => Listener\LoggingErrorListenerFactory::class,

Expand Down Expand Up @@ -202,7 +202,7 @@ public function getAbstractFactoryConfig(): array
Handler\User\UserHandler::class => [
ClassMethodsHydrator::class,
],
Handler\Core\TestMailHandler::class => [
Handler\System\TestMailHandler::class => [
Mailer::class,
],
Middleware\Event\EventCreateValidationMiddleware::class => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Dto\Core;
namespace App\Dto\System;

use App\Entity\User;
use OpenApi\Attributes as OA;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Dto\Core;
namespace App\Dto\System;

use OpenApi\Attributes as OA;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Dto\Core;
namespace App\Dto\System;

use OpenApi\Attributes as OA;

Expand Down
4 changes: 2 additions & 2 deletions src/App/Handler/Authentication/LoginHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace App\Handler\Authentication;

use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\SimpleMessageDto;
use App\Dto\UserContent\LoginTokenDto;
use App\Dto\UserContent\LoginValidationFailureMessageDto;
use App\Dto\UserContent\UserLogInDataDto;
use App\Entity\User;
use App\Service\Core\JwtTokenGeneratorTrait;
use App\Service\System\JwtTokenGeneratorTrait;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
use OpenApi\Attributes as OA;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Handler\Authentication;

use App\Dto\Core\HttpStatusCodeMessage;
use App\Dto\System\HttpStatusCodeMessage;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
use OpenApi\Attributes as OA;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php declare(strict_types=1);

namespace App\Handler\Core;
namespace App\Handler\System;

use App\Dto\Core\ApiMeDto;
use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\ApiMeDto;
use App\Dto\System\SimpleMessageDto;
use App\Entity\User;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Handler\Core;
namespace App\Handler\System;

use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Handler\Core;
namespace App\Handler\System;

use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Handler/Topic/TopicCreateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Handler\Topic;

use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\SimpleMessageDto;
use App\Dto\Topic\TopicCreateFailureMessageDto;
use App\Dto\Topic\TopicCreateRequestDto;
use App\Dto\Topic\TopicCreateResponseDto;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Handler/Topic/TopicListAvailableHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Handler\Topic;

use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\SimpleMessageDto;
use App\Dto\Topic\TopicListDto;
use App\Entity\Topic;
use Fig\Http\Message\StatusCodeInterface as HTTP;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Middleware\Authentication;

use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\SimpleMessageDto;
use App\Entity\User;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Middleware\Authentication;

use App\Dto\Core\SimpleMessageDto;
use App\Dto\System\SimpleMessageDto;
use App\Entity\User;
use App\Service\Authentication\LoginAuthenticationService;
use App\Service\User\UserService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Middleware\Authentication;

use App\Entity\User;
use App\Service\Core\TokenService;
use App\Service\System\TokenService;
use App\Service\User\UserService;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Middleware\Authentication;

use App\Dto\Core\HttpStatusCodeMessage;
use App\Dto\System\HttpStatusCodeMessage;
use App\Entity\User;
use App\Enum\UserRole;
use App\Exception\DuplicateEntryException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Middleware\Authentication;

use App\Dto\Core\HttpStatusCodeMessage;
use App\Dto\System\HttpStatusCodeMessage;
use App\Validator\RegisterValidator;
use Fig\Http\Message\StatusCodeInterface as HTTP;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Middleware\Core;
namespace App\Middleware\System;

use App\Exception\HttpException;
use Laminas\Diactoros\Response\JsonResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Service\Core;
namespace App\Service\System;

use Firebase\JWT\JWT;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace App\Service\Core;
namespace App\Service\System;

use function bin2hex;
use function openssl_random_pseudo_bytes;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/App/Service/TokenServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Service;

use App\Service\Core\TokenService;
use App\Service\System\TokenService;
use PHPUnit\Framework\TestCase;

class TokenServiceTest extends TestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Test;

use App\Handler\Core\ApiMeHandler;
use App\Handler\Core\PingHandler;
use App\Handler\System\ApiMeHandler;
use App\Handler\System\PingHandler;
use Mezzio\Application;

return static function (Application $app): void {
Expand Down

0 comments on commit 87d78b0

Please sign in to comment.