Skip to content

Commit c501c0e

Browse files
committed
ISSUE-345: Request folder
1 parent c2a0abf commit c501c0e

15 files changed

+27
-27
lines changed

src/Controller/ListController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
namespace PhpList\RestBundle\Controller;
66

7+
use OpenApi\Attributes as OA;
78
use PhpList\Core\Domain\Model\Subscription\SubscriberList;
8-
use PhpList\RestBundle\Entity\CreateSubscriberListRequest;
9+
use PhpList\Core\Security\Authentication;
10+
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
11+
use PhpList\RestBundle\Entity\Request\CreateSubscriberListRequest;
912
use PhpList\RestBundle\Serializer\SubscriberListNormalizer;
1013
use PhpList\RestBundle\Serializer\SubscriberNormalizer;
1114
use PhpList\RestBundle\Service\Manager\SubscriberListManager;
1215
use PhpList\RestBundle\Validator\RequestValidator;
1316
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
1417
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
15-
use PhpList\Core\Security\Authentication;
16-
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
1718
use Symfony\Component\HttpFoundation\JsonResponse;
1819
use Symfony\Component\HttpFoundation\Request;
1920
use Symfony\Component\HttpFoundation\Response;
2021
use Symfony\Component\Routing\Attribute\Route;
21-
use OpenApi\Attributes as OA;
2222

2323
/**
2424
* This controller provides REST API access to subscriber lists.

src/Controller/SessionController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
namespace PhpList\RestBundle\Controller;
66

7-
use PhpList\RestBundle\Entity\CreateSessionRequest;
7+
use OpenApi\Attributes as OA;
8+
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
9+
use PhpList\Core\Security\Authentication;
10+
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
11+
use PhpList\RestBundle\Entity\Request\CreateSessionRequest;
812
use PhpList\RestBundle\Serializer\AdministratorTokenNormalizer;
913
use PhpList\RestBundle\Service\Manager\SessionManager;
1014
use PhpList\RestBundle\Validator\RequestValidator;
1115
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
1216
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
13-
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
14-
use PhpList\Core\Security\Authentication;
15-
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
1617
use Symfony\Component\HttpFoundation\JsonResponse;
1718
use Symfony\Component\HttpFoundation\Request;
1819
use Symfony\Component\HttpFoundation\Response;
1920
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
2021
use Symfony\Component\Routing\Attribute\Route;
21-
use OpenApi\Attributes as OA;
2222

2323
/**
2424
* This controller provides methods to create and destroy REST API sessions.

src/Controller/SubscriberController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use PhpList\Core\Domain\Model\Subscription\Subscriber;
99
use PhpList\Core\Security\Authentication;
1010
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
11-
use PhpList\RestBundle\Entity\CreateSubscriberRequest;
12-
use PhpList\RestBundle\Entity\UpdateSubscriberRequest;
11+
use PhpList\RestBundle\Entity\Request\CreateSubscriberRequest;
12+
use PhpList\RestBundle\Entity\Request\UpdateSubscriberRequest;
1313
use PhpList\RestBundle\Serializer\SubscriberNormalizer;
1414
use PhpList\RestBundle\Service\Manager\SubscriberManager;
1515
use PhpList\RestBundle\Validator\RequestValidator;

src/Entity/CreateSessionRequest.php renamed to src/Entity/Request/CreateSessionRequest.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 PhpList\RestBundle\Entity;
5+
namespace PhpList\RestBundle\Entity\Request;
66

77
use Symfony\Component\Validator\Constraints as Assert;
88

src/Entity/CreateSubscriberListRequest.php renamed to src/Entity/Request/CreateSubscriberListRequest.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 PhpList\RestBundle\Entity;
5+
namespace PhpList\RestBundle\Entity\Request;
66

77
use Symfony\Component\Validator\Constraints as Assert;
88

src/Entity/CreateSubscriberRequest.php renamed to src/Entity/Request/CreateSubscriberRequest.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 PhpList\RestBundle\Entity;
5+
namespace PhpList\RestBundle\Entity\Request;
66

77
use PhpList\RestBundle\Validator as CustomAssert;
88
use Symfony\Component\Validator\Constraints as Assert;
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 PhpList\RestBundle\Entity;
5+
namespace PhpList\RestBundle\Entity\Request;
66

77
interface RequestInterface
88
{

src/Entity/UpdateSubscriberRequest.php renamed to src/Entity/Request/UpdateSubscriberRequest.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 PhpList\RestBundle\Entity;
5+
namespace PhpList\RestBundle\Entity\Request;
66

77
use PhpList\RestBundle\Validator as CustomAssert;
88
use Symfony\Component\Validator\Constraints as Assert;

src/Service/Manager/SessionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
88
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
99
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
10-
use PhpList\RestBundle\Entity\CreateSessionRequest;
10+
use PhpList\RestBundle\Entity\Request\CreateSessionRequest;
1111
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
1212

1313
class SessionManager

src/Service/Manager/SubscriberListManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PhpList\Core\Domain\Model\Subscription\SubscriberList;
99
use PhpList\Core\Domain\Repository\Subscription\SubscriberListRepository;
1010
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
11-
use PhpList\RestBundle\Entity\CreateSubscriberListRequest;
11+
use PhpList\RestBundle\Entity\Request\CreateSubscriberListRequest;
1212

1313
class SubscriberListManager
1414
{

0 commit comments

Comments
 (0)