Skip to content

Commit 44290bf

Browse files
authored
Merge pull request #129 from 15web/94956-refactor-group-infrastructure-classes
refactor(Infrastructure): сгруппировал классы в Infrastructure
2 parents 1a15dd8 + 1b437bd commit 44290bf

File tree

23 files changed

+28
-23
lines changed

23 files changed

+28
-23
lines changed

backend/src/Infrastructure/ApiException/ExceptionEventSubscriber.php renamed to backend/src/Infrastructure/EventSubscriber/ExceptionEventSubscriber.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure\ApiException;
5+
namespace App\Infrastructure\EventSubscriber;
66

7+
use App\Infrastructure\ApiException\ApiException;
8+
use App\Infrastructure\ApiException\CreateExceptionJsonResponse;
79
use App\Infrastructure\AsService;
810
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
911
use Symfony\Component\HttpKernel\Event\ExceptionEvent;

backend/src/Infrastructure/MailerSubscriber.php renamed to backend/src/Infrastructure/EventSubscriber/MailerSubscriber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\EventSubscriber;
66

7+
use App\Infrastructure\AsService;
78
use Symfony\Component\DependencyInjection\Attribute\Autowire;
89
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
910
use Symfony\Component\Mailer\Event\MessageEvent;

backend/src/Infrastructure/OpenApiValidateSubscriber.php renamed to backend/src/Infrastructure/EventSubscriber/OpenApiValidateSubscriber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\EventSubscriber;
66

7+
use App\Infrastructure\AsService;
78
use League\OpenAPIValidation\PSR7\OperationAddress;
89
use League\OpenAPIValidation\PSR7\RequestValidator;
910
use League\OpenAPIValidation\PSR7\ResponseValidator;

backend/src/Infrastructure/ResponseEventSubscriber.php renamed to backend/src/Infrastructure/EventSubscriber/ResponseEventSubscriber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\EventSubscriber;
66

7+
use App\Infrastructure\AsService;
78
use RuntimeException;
89
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
910
use Symfony\Component\HttpFoundation\JsonResponse;

backend/src/Infrastructure/Email.php renamed to backend/src/Infrastructure/ValueObject/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\ValueObject;
66

77
use Doctrine\ORM\Mapping as ORM;
88
use Webmozart\Assert\Assert;

backend/src/Infrastructure/Phone.php renamed to backend/src/Infrastructure/ValueObject/Phone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\ValueObject;
66

77
use Doctrine\ORM\Mapping as ORM;
88
use Webmozart\Assert\Assert;

backend/src/Infrastructure/ValueObject.php renamed to backend/src/Infrastructure/ValueObject/ValueObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Infrastructure;
5+
namespace App\Infrastructure\ValueObject;
66

77
/**
88
* Интерфейс для всех ValueObject

backend/src/Task/Domain/TaskCommentBody.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace App\Task\Domain;
66

7-
use App\Infrastructure\ValueObject;
7+
use App\Infrastructure\ValueObject\ValueObject;
88
use Doctrine\ORM\Mapping as ORM;
99
use Webmozart\Assert\Assert;
1010

backend/src/Task/Domain/TaskCommentId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace App\Task\Domain;
66

7-
use App\Infrastructure\ValueObject;
7+
use App\Infrastructure\ValueObject\ValueObject;
88
use Symfony\Component\Uid\Uuid;
99
use Symfony\Component\Uid\UuidV7;
1010

backend/src/Task/Domain/TaskId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace App\Task\Domain;
66

7-
use App\Infrastructure\ValueObject;
7+
use App\Infrastructure\ValueObject\ValueObject;
88
use Symfony\Component\Uid\Uuid;
99
use Symfony\Component\Uid\UuidV7;
1010

0 commit comments

Comments
 (0)