diff --git a/src/lib/Server/Controller/Bookmark/BookmarkCreateController.php b/src/lib/Server/Controller/Bookmark/BookmarkCreateController.php index d7da52dc..ff31d560 100644 --- a/src/lib/Server/Controller/Bookmark/BookmarkCreateController.php +++ b/src/lib/Server/Controller/Bookmark/BookmarkCreateController.php @@ -8,15 +8,12 @@ namespace Ibexa\Rest\Server\Controller\Bookmark; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\BookmarkService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; diff --git a/src/lib/Server/Controller/Bookmark/BookmarkDeleteController.php b/src/lib/Server/Controller/Bookmark/BookmarkDeleteController.php index fd29d8d1..527c8a0d 100644 --- a/src/lib/Server/Controller/Bookmark/BookmarkDeleteController.php +++ b/src/lib/Server/Controller/Bookmark/BookmarkDeleteController.php @@ -9,9 +9,6 @@ namespace Ibexa\Rest\Server\Controller\Bookmark; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\BookmarkService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; diff --git a/src/lib/Server/Controller/Bookmark/BookmarkIsBookmarkedController.php b/src/lib/Server/Controller/Bookmark/BookmarkIsBookmarkedController.php index eff54d39..8414073e 100644 --- a/src/lib/Server/Controller/Bookmark/BookmarkIsBookmarkedController.php +++ b/src/lib/Server/Controller/Bookmark/BookmarkIsBookmarkedController.php @@ -8,19 +8,13 @@ namespace Ibexa\Rest\Server\Controller\Bookmark; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Bundle\Rest\ApiPlatform\Head; use Ibexa\Contracts\Core\Repository\BookmarkService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Bookmark/BookmarkListController.php b/src/lib/Server/Controller/Bookmark/BookmarkListController.php index 7f0304b7..5f916ffc 100644 --- a/src/lib/Server/Controller/Bookmark/BookmarkListController.php +++ b/src/lib/Server/Controller/Bookmark/BookmarkListController.php @@ -8,15 +8,10 @@ namespace Ibexa\Rest\Server\Controller\Bookmark; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\BookmarkService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; diff --git a/src/lib/Server/Controller/Content/ContentCopyController.php b/src/lib/Server/Controller/Content/ContentCopyController.php index 7b567555..3b49eeed 100644 --- a/src/lib/Server/Controller/Content/ContentCopyController.php +++ b/src/lib/Server/Controller/Content/ContentCopyController.php @@ -7,30 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; class ContentCopyController extends RestController { diff --git a/src/lib/Server/Controller/Content/ContentCreateController.php b/src/lib/Server/Controller/Content/ContentCreateController.php index e1738d0c..53a1fc6d 100644 --- a/src/lib/Server/Controller/Content/ContentCreateController.php +++ b/src/lib/Server/Controller/Content/ContentCreateController.php @@ -7,31 +7,19 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; - #[Post( uriTemplate: '/content/objects', diff --git a/src/lib/Server/Controller/Content/ContentCurrentVersionRedirectController.php b/src/lib/Server/Controller/Content/ContentCurrentVersionRedirectController.php index 05dca2cd..eb41ddb1 100644 --- a/src/lib/Server/Controller/Content/ContentCurrentVersionRedirectController.php +++ b/src/lib/Server/Controller/Content/ContentCurrentVersionRedirectController.php @@ -7,30 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/currentversion', diff --git a/src/lib/Server/Controller/Content/ContentCurrentVersionRelationsRedirectController.php b/src/lib/Server/Controller/Content/ContentCurrentVersionRelationsRedirectController.php index 830c0b0a..ef04ecd5 100644 --- a/src/lib/Server/Controller/Content/ContentCurrentVersionRelationsRedirectController.php +++ b/src/lib/Server/Controller/Content/ContentCurrentVersionRelationsRedirectController.php @@ -7,30 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/relations', diff --git a/src/lib/Server/Controller/Content/ContentDeleteController.php b/src/lib/Server/Controller/Content/ContentDeleteController.php index 59de9bcd..fe229328 100644 --- a/src/lib/Server/Controller/Content/ContentDeleteController.php +++ b/src/lib/Server/Controller/Content/ContentDeleteController.php @@ -8,29 +8,10 @@ namespace Ibexa\Rest\Server\Controller\Content; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Delete( uriTemplate: '/content/objects/{contentId}', diff --git a/src/lib/Server/Controller/Content/ContentDraftCreateFromCurrentVersionController.php b/src/lib/Server/Controller/Content/ContentDraftCreateFromCurrentVersionController.php index 96a64e37..a3ba24cc 100644 --- a/src/lib/Server/Controller/Content/ContentDraftCreateFromCurrentVersionController.php +++ b/src/lib/Server/Controller/Content/ContentDraftCreateFromCurrentVersionController.php @@ -7,30 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Post( uriTemplate: '/content/objects/{contentId}/currentversion', diff --git a/src/lib/Server/Controller/Content/ContentDraftCreateFromVersionController.php b/src/lib/Server/Controller/Content/ContentDraftCreateFromVersionController.php index 9ec98367..e6690170 100644 --- a/src/lib/Server/Controller/Content/ContentDraftCreateFromVersionController.php +++ b/src/lib/Server/Controller/Content/ContentDraftCreateFromVersionController.php @@ -7,30 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Post( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}', diff --git a/src/lib/Server/Controller/Content/ContentDraftTranslationDeleteController.php b/src/lib/Server/Controller/Content/ContentDraftTranslationDeleteController.php index 99208ee9..9d2cc613 100644 --- a/src/lib/Server/Controller/Content/ContentDraftTranslationDeleteController.php +++ b/src/lib/Server/Controller/Content/ContentDraftTranslationDeleteController.php @@ -8,29 +8,11 @@ namespace Ibexa\Rest\Server\Controller\Content; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Delete( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}/translations/{languageCode}', diff --git a/src/lib/Server/Controller/Content/ContentHideController.php b/src/lib/Server/Controller/Content/ContentHideController.php index 26d74e9a..98df5524 100644 --- a/src/lib/Server/Controller/Content/ContentHideController.php +++ b/src/lib/Server/Controller/Content/ContentHideController.php @@ -7,30 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Post( uriTemplate: '/content/objects/{contentId}/hide', diff --git a/src/lib/Server/Controller/Content/ContentInVersionLoadController.php b/src/lib/Server/Controller/Content/ContentInVersionLoadController.php index d7552cba..e0620917 100644 --- a/src/lib/Server/Controller/Content/ContentInVersionLoadController.php +++ b/src/lib/Server/Controller/Content/ContentInVersionLoadController.php @@ -7,30 +7,14 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}', diff --git a/src/lib/Server/Controller/Content/ContentLoadByIdController.php b/src/lib/Server/Controller/Content/ContentLoadByIdController.php index 9e640538..6148492c 100644 --- a/src/lib/Server/Controller/Content/ContentLoadByIdController.php +++ b/src/lib/Server/Controller/Content/ContentLoadByIdController.php @@ -7,30 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}', diff --git a/src/lib/Server/Controller/Content/ContentMetadataUpdateController.php b/src/lib/Server/Controller/Content/ContentMetadataUpdateController.php index a82e3bbe..7f69517a 100644 --- a/src/lib/Server/Controller/Content/ContentMetadataUpdateController.php +++ b/src/lib/Server/Controller/Content/ContentMetadataUpdateController.php @@ -7,30 +7,15 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Patch( uriTemplate: '/content/objects/{contentId}', diff --git a/src/lib/Server/Controller/Content/ContentRedirectController.php b/src/lib/Server/Controller/Content/ContentRedirectController.php index 659d176b..24871d58 100644 --- a/src/lib/Server/Controller/Content/ContentRedirectController.php +++ b/src/lib/Server/Controller/Content/ContentRedirectController.php @@ -7,30 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects', diff --git a/src/lib/Server/Controller/Content/ContentRelationCreateController.php b/src/lib/Server/Controller/Content/ContentRelationCreateController.php index dab9eece..cc56e7b7 100644 --- a/src/lib/Server/Controller/Content/ContentRelationCreateController.php +++ b/src/lib/Server/Controller/Content/ContentRelationCreateController.php @@ -7,30 +7,18 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Post( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}/relations', diff --git a/src/lib/Server/Controller/Content/ContentRevealController.php b/src/lib/Server/Controller/Content/ContentRevealController.php index afe71eca..e38043a3 100644 --- a/src/lib/Server/Controller/Content/ContentRevealController.php +++ b/src/lib/Server/Controller/Content/ContentRevealController.php @@ -7,30 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Post( uriTemplate: '/content/objects/{contentId}/reveal', diff --git a/src/lib/Server/Controller/Content/ContentTranslationDeleteController.php b/src/lib/Server/Controller/Content/ContentTranslationDeleteController.php index 7a6061c8..72c567cf 100644 --- a/src/lib/Server/Controller/Content/ContentTranslationDeleteController.php +++ b/src/lib/Server/Controller/Content/ContentTranslationDeleteController.php @@ -8,29 +8,10 @@ namespace Ibexa\Rest\Server\Controller\Content; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Delete( uriTemplate: '/content/objects/{contentId}/translations/{languageCode}', diff --git a/src/lib/Server/Controller/Content/ContentVersionDeleteController.php b/src/lib/Server/Controller/Content/ContentVersionDeleteController.php index 69025703..52d357b7 100644 --- a/src/lib/Server/Controller/Content/ContentVersionDeleteController.php +++ b/src/lib/Server/Controller/Content/ContentVersionDeleteController.php @@ -8,29 +8,11 @@ namespace Ibexa\Rest\Server\Controller\Content; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Delete( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}', diff --git a/src/lib/Server/Controller/Content/ContentVersionPublishController.php b/src/lib/Server/Controller/Content/ContentVersionPublishController.php index 46cb394c..b905180c 100644 --- a/src/lib/Server/Controller/Content/ContentVersionPublishController.php +++ b/src/lib/Server/Controller/Content/ContentVersionPublishController.php @@ -7,31 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; - class ContentVersionPublishController extends RestController { diff --git a/src/lib/Server/Controller/Content/ContentVersionRelationDeleteController.php b/src/lib/Server/Controller/Content/ContentVersionRelationDeleteController.php index 57d5e7ef..e2b663cb 100644 --- a/src/lib/Server/Controller/Content/ContentVersionRelationDeleteController.php +++ b/src/lib/Server/Controller/Content/ContentVersionRelationDeleteController.php @@ -8,29 +8,14 @@ namespace Ibexa\Rest\Server\Controller\Content; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Delete( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}/relations/{relationId}', diff --git a/src/lib/Server/Controller/Content/ContentVersionRelationLoadByIdController.php b/src/lib/Server/Controller/Content/ContentVersionRelationLoadByIdController.php index f1e56cdd..1b44c659 100644 --- a/src/lib/Server/Controller/Content/ContentVersionRelationLoadByIdController.php +++ b/src/lib/Server/Controller/Content/ContentVersionRelationLoadByIdController.php @@ -7,30 +7,14 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}/relations/{relationId}', diff --git a/src/lib/Server/Controller/Content/ContentVersionUpdateController.php b/src/lib/Server/Controller/Content/ContentVersionUpdateController.php index 8486ec8e..4e98a7ec 100644 --- a/src/lib/Server/Controller/Content/ContentVersionUpdateController.php +++ b/src/lib/Server/Controller/Content/ContentVersionUpdateController.php @@ -7,30 +7,20 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Patch( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}', diff --git a/src/lib/Server/Controller/Content/ContentVersionsListController.php b/src/lib/Server/Controller/Content/ContentVersionsListController.php index e675b01f..d11276e7 100644 --- a/src/lib/Server/Controller/Content/ContentVersionsListController.php +++ b/src/lib/Server/Controller/Content/ContentVersionsListController.php @@ -7,30 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/versions', diff --git a/src/lib/Server/Controller/Content/ContentVersionsRelationsListController.php b/src/lib/Server/Controller/Content/ContentVersionsRelationsListController.php index 15caa2f9..ee2578d7 100644 --- a/src/lib/Server/Controller/Content/ContentVersionsRelationsListController.php +++ b/src/lib/Server/Controller/Content/ContentVersionsRelationsListController.php @@ -7,30 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\HttpKernelInterface; #[Get( uriTemplate: '/content/objects/{contentId}/versions/{versionNo}/relations', diff --git a/src/lib/Server/Controller/Content/ContentViewController.php b/src/lib/Server/Controller/Content/ContentViewController.php index cb782410..14d0eb1f 100644 --- a/src/lib/Server/Controller/Content/ContentViewController.php +++ b/src/lib/Server/Controller/Content/ContentViewController.php @@ -7,27 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Content; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentFieldValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\Content\Relation; -use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ContentFieldValidationException as RESTContentFieldValidationException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\RestContentCreateStruct; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpKernelInterface; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeCopyController.php b/src/lib/Server/Controller/ContentType/ContentTypeCopyController.php index 1ca5697e..f8d83673 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeCopyController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeCopyController.php @@ -7,31 +7,9 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; - class ContentTypeCopyController extends RestController { diff --git a/src/lib/Server/Controller/ContentType/ContentTypeCreateController.php b/src/lib/Server/Controller/ContentType/ContentTypeCreateController.php index 348ad1c4..b370fc4c 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeCreateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeCreateController.php @@ -7,21 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDeleteController.php b/src/lib/Server/Controller/ContentType/ContentTypeDeleteController.php index c5b8355c..f74d3516 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDeleteController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDeleteController.php @@ -8,28 +8,13 @@ namespace Ibexa\Rest\Server\Controller\ContentType; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftCreateController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftCreateController.php index 2e241434..966ee29f 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftCreateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftCreateController.php @@ -7,25 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; @@ -166,7 +156,7 @@ public function createContentTypeDraft($contentTypeId, Request $request) return new Values\CreatedContentType( [ 'contentType' => new Values\RestContentType( - // Reload the content type draft to get the updated values + // Reload the content type draft to get the updated values $this->contentTypeService->loadContentTypeDraft( $contentTypeDraft->id ) diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftDeleteController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftDeleteController.php index d029f75b..294e79c2 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftDeleteController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftDeleteController.php @@ -8,28 +8,10 @@ namespace Ibexa\Rest\Server\Controller\ContentType; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftFeildDefinitionAddController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftFeildDefinitionAddController.php index 77a9d036..090aaa00 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftFeildDefinitionAddController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftFeildDefinitionAddController.php @@ -7,21 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionDeleteController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionDeleteController.php index fb62b1ee..b71dcd60 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionDeleteController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionDeleteController.php @@ -8,27 +8,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionListController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionListController.php index d53796db..586a2616 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionListController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionListController.php @@ -7,29 +7,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionLoadByIdController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionLoadByIdController.php index 1a52a26f..1a214aa0 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionLoadByIdController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionLoadByIdController.php @@ -7,28 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionUpdateController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionUpdateController.php index 2ddd01b5..79ca6eb6 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionUpdateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftFieldDefinitionUpdateController.php @@ -7,25 +7,14 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftLoadController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftLoadController.php index 7af57fa9..c1a1f77a 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftLoadController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftLoadController.php @@ -7,29 +7,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftPublishController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftPublishController.php index 7fdadf0f..7c6aee72 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftPublishController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftPublishController.php @@ -7,30 +7,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class ContentTypeDraftPublishController extends RestController { diff --git a/src/lib/Server/Controller/ContentType/ContentTypeDraftUpdateController.php b/src/lib/Server/Controller/ContentType/ContentTypeDraftUpdateController.php index 254dbb20..7c4d5927 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeDraftUpdateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeDraftUpdateController.php @@ -7,25 +7,14 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; @@ -158,7 +147,7 @@ public function updateContentTypeDraft($contentTypeId, Request $request) } return new Values\RestContentType( - // Reload the content type draft to get the updated values + // Reload the content type draft to get the updated values $this->contentTypeService->loadContentTypeDraft( $contentTypeDraft->id ) diff --git a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionListController.php b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionListController.php index 23e4a23b..ad8da4bf 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionListController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionListController.php @@ -7,29 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdController.php b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdController.php index 10c612ed..6d9d24b3 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdController.php @@ -7,28 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdentifierController.php b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdentifierController.php index 37c49ee5..e851f9dc 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdentifierController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeFieldDefinitionLoadByIdentifierController.php @@ -7,31 +7,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; - class ContentTypeFieldDefinitionLoadByIdentifierController extends RestController { diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupCreateController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupCreateController.php index 4603b1c4..f8cba878 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupCreateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupCreateController.php @@ -7,25 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupDeleteController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupDeleteController.php index c414104f..55108487 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupDeleteController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupDeleteController.php @@ -8,28 +8,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupListController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupListController.php index b63486f4..ace3a794 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupListController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupListController.php @@ -7,29 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupLoadByIdController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupLoadByIdController.php index 4bb47fbe..9936d946 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupLoadByIdController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupLoadByIdController.php @@ -7,29 +7,11 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupUpdateController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupUpdateController.php index 06090da5..5f53c6f9 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupUpdateController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupUpdateController.php @@ -7,27 +7,17 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeGroupsListController.php b/src/lib/Server/Controller/ContentType/ContentTypeGroupsListController.php index 547ce036..d887c4a8 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeGroupsListController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeGroupsListController.php @@ -7,28 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeLinkToGroupController.php b/src/lib/Server/Controller/ContentType/ContentTypeLinkToGroupController.php index bd8fbdb4..f997391b 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeLinkToGroupController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeLinkToGroupController.php @@ -7,28 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeListController.php b/src/lib/Server/Controller/ContentType/ContentTypeListController.php index d726edda..d91faecb 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeListController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeListController.php @@ -7,28 +7,14 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeListForGroupController.php b/src/lib/Server/Controller/ContentType/ContentTypeListForGroupController.php index cb20f86a..06f5ebec 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeListForGroupController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeListForGroupController.php @@ -7,28 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ContentType/ContentTypeLoadByIdController.php b/src/lib/Server/Controller/ContentType/ContentTypeLoadByIdController.php index 34c76582..309c7e60 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeLoadByIdController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeLoadByIdController.php @@ -7,29 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ContentType/ContentTypeUnlinkFromGroupController.php b/src/lib/Server/Controller/ContentType/ContentTypeUnlinkFromGroupController.php index 4e060c58..ee70d408 100644 --- a/src/lib/Server/Controller/ContentType/ContentTypeUnlinkFromGroupController.php +++ b/src/lib/Server/Controller/ContentType/ContentTypeUnlinkFromGroupController.php @@ -8,28 +8,12 @@ namespace Ibexa\Rest\Server\Controller\ContentType; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions\BadStateException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeFieldDefinitionValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\ContentTypeValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType as APIContentType; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Language/LanguageListController.php b/src/lib/Server/Controller/Language/LanguageListController.php index 8409997e..9373ec05 100644 --- a/src/lib/Server/Controller/Language/LanguageListController.php +++ b/src/lib/Server/Controller/Language/LanguageListController.php @@ -11,7 +11,6 @@ use ApiPlatform\Metadata\Get; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\LanguageService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language as ApiLanguage; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Values\LanguageList; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Language/LanguageLoadByIdController.php b/src/lib/Server/Controller/Language/LanguageLoadByIdController.php index ff2ad847..708de672 100644 --- a/src/lib/Server/Controller/Language/LanguageLoadByIdController.php +++ b/src/lib/Server/Controller/Language/LanguageLoadByIdController.php @@ -13,9 +13,7 @@ use Ibexa\Contracts\Core\Repository\LanguageService; use Ibexa\Contracts\Core\Repository\Values\Content\Language as ApiLanguage; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Values\LanguageList; use Symfony\Component\HttpFoundation\Response; -use Traversable; #[Get( uriTemplate: '/languages/{code}', diff --git a/src/lib/Server/Controller/Location/LocationBaseController.php b/src/lib/Server/Controller/Location/LocationBaseController.php index 757fe9bf..09088f50 100644 --- a/src/lib/Server/Controller/Location/LocationBaseController.php +++ b/src/lib/Server/Controller/Location/LocationBaseController.php @@ -7,25 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class LocationBaseController extends RestController { diff --git a/src/lib/Server/Controller/Location/LocationChildrenListController.php b/src/lib/Server/Controller/Location/LocationChildrenListController.php index 74d52251..00dd20b0 100644 --- a/src/lib/Server/Controller/Location/LocationChildrenListController.php +++ b/src/lib/Server/Controller/Location/LocationChildrenListController.php @@ -7,23 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Location/LocationCreateController.php b/src/lib/Server/Controller/Location/LocationCreateController.php index 21494f6c..00671463 100644 --- a/src/lib/Server/Controller/Location/LocationCreateController.php +++ b/src/lib/Server/Controller/Location/LocationCreateController.php @@ -7,21 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; diff --git a/src/lib/Server/Controller/Location/LocationForContentListController.php b/src/lib/Server/Controller/Location/LocationForContentListController.php index f31ead5e..577d37a8 100644 --- a/src/lib/Server/Controller/Location/LocationForContentListController.php +++ b/src/lib/Server/Controller/Location/LocationForContentListController.php @@ -7,24 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Location/LocationLoadByPathController.php b/src/lib/Server/Controller/Location/LocationLoadByPathController.php index fbdb1e54..bee862cb 100644 --- a/src/lib/Server/Controller/Location/LocationLoadByPathController.php +++ b/src/lib/Server/Controller/Location/LocationLoadByPathController.php @@ -7,24 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Location/LocationRedirectController.php b/src/lib/Server/Controller/Location/LocationRedirectController.php index a6334580..72af79ad 100644 --- a/src/lib/Server/Controller/Location/LocationRedirectController.php +++ b/src/lib/Server/Controller/Location/LocationRedirectController.php @@ -7,23 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Location/LocationSubtreeCopyController.php b/src/lib/Server/Controller/Location/LocationSubtreeCopyController.php index 6a615e71..8bac7790 100644 --- a/src/lib/Server/Controller/Location/LocationSubtreeCopyController.php +++ b/src/lib/Server/Controller/Location/LocationSubtreeCopyController.php @@ -7,25 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class LocationSubtreeCopyController extends LocationBaseController { diff --git a/src/lib/Server/Controller/Location/LocationSubtreeDeleteController.php b/src/lib/Server/Controller/Location/LocationSubtreeDeleteController.php index 7c676790..d4211a08 100644 --- a/src/lib/Server/Controller/Location/LocationSubtreeDeleteController.php +++ b/src/lib/Server/Controller/Location/LocationSubtreeDeleteController.php @@ -8,23 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Location; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Location/LocationSubtreeMoveController.php b/src/lib/Server/Controller/Location/LocationSubtreeMoveController.php index f23b5e73..4baa2180 100644 --- a/src/lib/Server/Controller/Location/LocationSubtreeMoveController.php +++ b/src/lib/Server/Controller/Location/LocationSubtreeMoveController.php @@ -7,25 +7,12 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class LocationSubtreeMoveController extends LocationBaseController { diff --git a/src/lib/Server/Controller/Location/LocationSwapController.php b/src/lib/Server/Controller/Location/LocationSwapController.php index 69d01217..514245ff 100644 --- a/src/lib/Server/Controller/Location/LocationSwapController.php +++ b/src/lib/Server/Controller/Location/LocationSwapController.php @@ -7,25 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class LocationSwapController extends LocationBaseController { diff --git a/src/lib/Server/Controller/Location/LocationUpdateController.php b/src/lib/Server/Controller/Location/LocationUpdateController.php index f5c102bc..66e7659c 100644 --- a/src/lib/Server/Controller/Location/LocationUpdateController.php +++ b/src/lib/Server/Controller/Location/LocationUpdateController.php @@ -7,23 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Location; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateCreateController.php b/src/lib/Server/Controller/ObjectState/ObjectStateCreateController.php index d39d2017..cdfb009a 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateCreateController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateCreateController.php @@ -7,22 +7,16 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; use Ibexa\Rest\Values\RestObjectState; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateDeleteController.php b/src/lib/Server/Controller/ObjectState/ObjectStateDeleteController.php index b62e75c3..3692ec3c 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateDeleteController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateDeleteController.php @@ -8,24 +8,11 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateGroupCreateController.php b/src/lib/Server/Controller/ObjectState/ObjectStateGroupCreateController.php index 0a519d6a..270a45f1 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateGroupCreateController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateGroupCreateController.php @@ -7,23 +7,16 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateGroupDeleteController.php b/src/lib/Server/Controller/ObjectState/ObjectStateGroupDeleteController.php index 7dad5bbc..37933639 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateGroupDeleteController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateGroupDeleteController.php @@ -8,24 +8,11 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateGroupListController.php b/src/lib/Server/Controller/ObjectState/ObjectStateGroupListController.php index c2ef8604..f0cee501 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateGroupListController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateGroupListController.php @@ -7,25 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateGroupLoadByIdController.php b/src/lib/Server/Controller/ObjectState/ObjectStateGroupLoadByIdController.php index 926f7fc1..5b4abcfe 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateGroupLoadByIdController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateGroupLoadByIdController.php @@ -7,25 +7,12 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateGroupUpdateController.php b/src/lib/Server/Controller/ObjectState/ObjectStateGroupUpdateController.php index 1009859d..bae90891 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateGroupUpdateController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateGroupUpdateController.php @@ -7,23 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateListController.php b/src/lib/Server/Controller/ObjectState/ObjectStateListController.php index 81ac838d..f40577ce 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateListController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateListController.php @@ -7,25 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateLoadByIdController.php b/src/lib/Server/Controller/ObjectState/ObjectStateLoadByIdController.php index 1b8054a5..d67504c0 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateLoadByIdController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateLoadByIdController.php @@ -7,25 +7,13 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStateUpdateController.php b/src/lib/Server/Controller/ObjectState/ObjectStateUpdateController.php index c00ec2a3..6ea44a77 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStateUpdateController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStateUpdateController.php @@ -7,22 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Values\ContentObjectStates; use Ibexa\Rest\Values\RestObjectState; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; diff --git a/src/lib/Server/Controller/ObjectState/ObjectStatesForContentListController.php b/src/lib/Server/Controller/ObjectState/ObjectStatesForContentListController.php index 94a18381..6c06ac36 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStatesForContentListController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStatesForContentListController.php @@ -7,25 +7,14 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; use Ibexa\Rest\Values\ContentObjectStates; use Ibexa\Rest\Values\RestObjectState; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/ObjectState/ObjectStatesForContentUpdateController.php b/src/lib/Server/Controller/ObjectState/ObjectStatesForContentUpdateController.php index 035ad2a4..62cf8113 100644 --- a/src/lib/Server/Controller/ObjectState/ObjectStatesForContentUpdateController.php +++ b/src/lib/Server/Controller/ObjectState/ObjectStatesForContentUpdateController.php @@ -7,23 +7,15 @@ namespace Ibexa\Rest\Server\Controller\ObjectState; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\ObjectStateService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; use Ibexa\Rest\Values\ContentObjectStates; -use Ibexa\Rest\Values\RestObjectState; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -167,7 +159,7 @@ public function setObjectStatesForContent($contentId, Request $request) foreach ($countByGroups as $groupId => $count) { if ($count > 1) { throw new ForbiddenException( - /** @Ignore */ + /** @Ignore */ "Multiple Object states provided for group with ID $groupId" ); } diff --git a/src/lib/Server/Controller/Role/RoleAssignToUserController.php b/src/lib/Server/Controller/Role/RoleAssignToUserController.php index d1d63257..0240f34b 100644 --- a/src/lib/Server/Controller/Role/RoleAssignToUserController.php +++ b/src/lib/Server/Controller/Role/RoleAssignToUserController.php @@ -7,29 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleAssignToUserGroupController.php b/src/lib/Server/Controller/Role/RoleAssignToUserGroupController.php index 5093122e..9418ef9c 100644 --- a/src/lib/Server/Controller/Role/RoleAssignToUserGroupController.php +++ b/src/lib/Server/Controller/Role/RoleAssignToUserGroupController.php @@ -7,29 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupListController.php b/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupListController.php index 4fd59bee..f223de50 100644 --- a/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupListController.php +++ b/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupListController.php @@ -7,30 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupLoadByIdController.php b/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupLoadByIdController.php index fc69511b..e7855aea 100644 --- a/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupLoadByIdController.php +++ b/src/lib/Server/Controller/Role/RoleAssignmentForUserGroupLoadByIdController.php @@ -7,29 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleAssignmentForUserListController.php b/src/lib/Server/Controller/Role/RoleAssignmentForUserListController.php index 29eaf6c4..a917d69e 100644 --- a/src/lib/Server/Controller/Role/RoleAssignmentForUserListController.php +++ b/src/lib/Server/Controller/Role/RoleAssignmentForUserListController.php @@ -7,30 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Role/RoleAssignmentForUserLoadByIdController.php b/src/lib/Server/Controller/Role/RoleAssignmentForUserLoadByIdController.php index fb56e756..32227c74 100644 --- a/src/lib/Server/Controller/Role/RoleAssignmentForUserLoadByIdController.php +++ b/src/lib/Server/Controller/Role/RoleAssignmentForUserLoadByIdController.php @@ -7,29 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleBaseController.php b/src/lib/Server/Controller/Role/RoleBaseController.php index 111d62bf..5ff9369f 100644 --- a/src/lib/Server/Controller/Role/RoleBaseController.php +++ b/src/lib/Server/Controller/Role/RoleBaseController.php @@ -7,31 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\RoleService; use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class RoleBaseController extends RestController { diff --git a/src/lib/Server/Controller/Role/RoleCreateController.php b/src/lib/Server/Controller/Role/RoleCreateController.php index ce4d8575..91b20c34 100644 --- a/src/lib/Server/Controller/Role/RoleCreateController.php +++ b/src/lib/Server/Controller/Role/RoleCreateController.php @@ -7,26 +7,16 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Core\Base\Exceptions\ForbiddenException; use Ibexa\Core\Base\Exceptions\InvalidArgumentException; use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; diff --git a/src/lib/Server/Controller/Role/RoleDeleteController.php b/src/lib/Server/Controller/Role/RoleDeleteController.php index 451d2bff..1ec18962 100644 --- a/src/lib/Server/Controller/Role/RoleDeleteController.php +++ b/src/lib/Server/Controller/Role/RoleDeleteController.php @@ -8,29 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Role/RoleDraftCreateController.php b/src/lib/Server/Controller/Role/RoleDraftCreateController.php index de5887b0..e9748dec 100644 --- a/src/lib/Server/Controller/Role/RoleDraftCreateController.php +++ b/src/lib/Server/Controller/Role/RoleDraftCreateController.php @@ -7,26 +7,14 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Core\Base\Exceptions\ForbiddenException; use Ibexa\Core\Base\Exceptions\InvalidArgumentException; use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; use JMS\TranslationBundle\Annotation\Ignore; diff --git a/src/lib/Server/Controller/Role/RoleDraftDeleteController.php b/src/lib/Server/Controller/Role/RoleDraftDeleteController.php index c01cb6e5..44c2f6b2 100644 --- a/src/lib/Server/Controller/Role/RoleDraftDeleteController.php +++ b/src/lib/Server/Controller/Role/RoleDraftDeleteController.php @@ -8,29 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Role/RoleDraftLoadByRoleIdController.php b/src/lib/Server/Controller/Role/RoleDraftLoadByRoleIdController.php index 8d760bb9..b27b577f 100644 --- a/src/lib/Server/Controller/Role/RoleDraftLoadByRoleIdController.php +++ b/src/lib/Server/Controller/Role/RoleDraftLoadByRoleIdController.php @@ -7,30 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Role/RoleDraftPublishController.php b/src/lib/Server/Controller/Role/RoleDraftPublishController.php index db05f695..454e533f 100644 --- a/src/lib/Server/Controller/Role/RoleDraftPublishController.php +++ b/src/lib/Server/Controller/Role/RoleDraftPublishController.php @@ -7,31 +7,8 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; class RoleDraftPublishController extends RoleBaseController { diff --git a/src/lib/Server/Controller/Role/RoleDraftUpdateController.php b/src/lib/Server/Controller/Role/RoleDraftUpdateController.php index a7e42df1..db02f7f8 100644 --- a/src/lib/Server/Controller/Role/RoleDraftUpdateController.php +++ b/src/lib/Server/Controller/Role/RoleDraftUpdateController.php @@ -7,29 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleListController.php b/src/lib/Server/Controller/Role/RoleListController.php index 2c39764b..30ba8baa 100644 --- a/src/lib/Server/Controller/Role/RoleListController.php +++ b/src/lib/Server/Controller/Role/RoleListController.php @@ -7,29 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleLoadByIdController.php b/src/lib/Server/Controller/Role/RoleLoadByIdController.php index e42ea541..64922684 100644 --- a/src/lib/Server/Controller/Role/RoleLoadByIdController.php +++ b/src/lib/Server/Controller/Role/RoleLoadByIdController.php @@ -7,30 +7,8 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Role/RolePoliciesForUserListController.php b/src/lib/Server/Controller/Role/RolePoliciesForUserListController.php index f9474b34..41e72e23 100644 --- a/src/lib/Server/Controller/Role/RolePoliciesForUserListController.php +++ b/src/lib/Server/Controller/Role/RolePoliciesForUserListController.php @@ -7,29 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RolePolicyCreateController.php b/src/lib/Server/Controller/Role/RolePolicyCreateController.php index 3991f2b8..99c36205 100644 --- a/src/lib/Server/Controller/Role/RolePolicyCreateController.php +++ b/src/lib/Server/Controller/Role/RolePolicyCreateController.php @@ -7,29 +7,14 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RolePolicyDeleteAllFromRoleController.php b/src/lib/Server/Controller/Role/RolePolicyDeleteAllFromRoleController.php index 50d7ea3a..f2b59e48 100644 --- a/src/lib/Server/Controller/Role/RolePolicyDeleteAllFromRoleController.php +++ b/src/lib/Server/Controller/Role/RolePolicyDeleteAllFromRoleController.php @@ -8,29 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Role/RolePolicyDeleteController.php b/src/lib/Server/Controller/Role/RolePolicyDeleteController.php index e9d82876..4e1eeb90 100644 --- a/src/lib/Server/Controller/Role/RolePolicyDeleteController.php +++ b/src/lib/Server/Controller/Role/RolePolicyDeleteController.php @@ -8,28 +8,10 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RolePolicyListController.php b/src/lib/Server/Controller/Role/RolePolicyListController.php index 38cdd51d..5f6a1080 100644 --- a/src/lib/Server/Controller/Role/RolePolicyListController.php +++ b/src/lib/Server/Controller/Role/RolePolicyListController.php @@ -7,29 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RolePolicyLoadByIdController.php b/src/lib/Server/Controller/Role/RolePolicyLoadByIdController.php index 8a69e5a8..05704da1 100644 --- a/src/lib/Server/Controller/Role/RolePolicyLoadByIdController.php +++ b/src/lib/Server/Controller/Role/RolePolicyLoadByIdController.php @@ -7,29 +7,9 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RolePolicyUpdateController.php b/src/lib/Server/Controller/Role/RolePolicyUpdateController.php index e216d6e1..7b83d015 100644 --- a/src/lib/Server/Controller/Role/RolePolicyUpdateController.php +++ b/src/lib/Server/Controller/Role/RolePolicyUpdateController.php @@ -7,29 +7,14 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Role/RoleUnassignFromUserController.php b/src/lib/Server/Controller/Role/RoleUnassignFromUserController.php index b3aa65d3..8db3d6a6 100644 --- a/src/lib/Server/Controller/Role/RoleUnassignFromUserController.php +++ b/src/lib/Server/Controller/Role/RoleUnassignFromUserController.php @@ -8,29 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Role/RoleUnassignFromUserGroupController.php b/src/lib/Server/Controller/Role/RoleUnassignFromUserGroupController.php index 1837ad46..037e6c9b 100644 --- a/src/lib/Server/Controller/Role/RoleUnassignFromUserGroupController.php +++ b/src/lib/Server/Controller/Role/RoleUnassignFromUserGroupController.php @@ -8,29 +8,8 @@ namespace Ibexa\Rest\Server\Controller\Role; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( @@ -117,5 +96,4 @@ public function unassignRoleFromUserGroup($groupPath, $roleId) return new Values\RoleAssignmentList($roleAssignments, $groupPath, true); } - } diff --git a/src/lib/Server/Controller/Role/RoleUpdateController.php b/src/lib/Server/Controller/Role/RoleUpdateController.php index 603e6de3..b2e55012 100644 --- a/src/lib/Server/Controller/Role/RoleUpdateController.php +++ b/src/lib/Server/Controller/Role/RoleUpdateController.php @@ -7,29 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Role; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\LimitationValidationException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as APINotFoundException; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct; -use Ibexa\Contracts\Rest\Exceptions; -use Ibexa\Core\Base\Exceptions\ForbiddenException; -use Ibexa\Core\Base\Exceptions\InvalidArgumentException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\BadRequestException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Section/SectionCreateController.php b/src/lib/Server/Controller/Section/SectionCreateController.php index f4133e2c..1f2aa66f 100644 --- a/src/lib/Server/Controller/Section/SectionCreateController.php +++ b/src/lib/Server/Controller/Section/SectionCreateController.php @@ -7,21 +7,15 @@ namespace Ibexa\Rest\Server\Controller\Section; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\NoContent; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Section/SectionDeleteController.php b/src/lib/Server/Controller/Section/SectionDeleteController.php index 2d333724..8336ea13 100644 --- a/src/lib/Server/Controller/Section/SectionDeleteController.php +++ b/src/lib/Server/Controller/Section/SectionDeleteController.php @@ -8,21 +8,10 @@ namespace Ibexa\Rest\Server\Controller\Section; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; use Ibexa\Rest\Server\Values\NoContent; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/Section/SectionListController.php b/src/lib/Server/Controller/Section/SectionListController.php index b9502044..d1493c8b 100644 --- a/src/lib/Server/Controller/Section/SectionListController.php +++ b/src/lib/Server/Controller/Section/SectionListController.php @@ -7,21 +7,11 @@ namespace Ibexa\Rest\Server\Controller\Section; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\NoContent; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -111,7 +101,7 @@ public function listSections(Request $request) public function loadSectionByIdentifier(Request $request) { return $this->sectionService->loadSectionByIdentifier( - // GET variable + // GET variable $request->query->get('identifier') ); } diff --git a/src/lib/Server/Controller/Section/SectionLoadByIdController.php b/src/lib/Server/Controller/Section/SectionLoadByIdController.php index 46a059f0..046dda21 100644 --- a/src/lib/Server/Controller/Section/SectionLoadByIdController.php +++ b/src/lib/Server/Controller/Section/SectionLoadByIdController.php @@ -7,22 +7,10 @@ namespace Ibexa\Rest\Server\Controller\Section; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct; -use Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\NoContent; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/Section/SectionUpdateController.php b/src/lib/Server/Controller/Section/SectionUpdateController.php index 16ee56b8..ac9a4325 100644 --- a/src/lib/Server/Controller/Section/SectionUpdateController.php +++ b/src/lib/Server/Controller/Section/SectionUpdateController.php @@ -7,10 +7,7 @@ namespace Ibexa\Rest\Server\Controller\Section; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; @@ -20,8 +17,6 @@ use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Server\Values\NoContent; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/Session/SessionBaseController.php b/src/lib/Server/Controller/Session/SessionBaseController.php index 7b741330..9a726505 100644 --- a/src/lib/Server/Controller/Session/SessionBaseController.php +++ b/src/lib/Server/Controller/Session/SessionBaseController.php @@ -8,25 +8,15 @@ namespace Ibexa\Rest\Server\Controller\Session; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\PermissionResolver; use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; use Ibexa\Contracts\Rest\Exceptions\UnauthorizedException; use Ibexa\Rest\Server\Controller; -use Ibexa\Rest\Server\Exceptions; use Ibexa\Rest\Server\Security\CsrfTokenManager; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as SecurityTokenStorageInterface; -use Symfony\Component\Security\Core\Exception\AccessDeniedException; -use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Csrf\CsrfToken; class SessionBaseController extends Controller diff --git a/src/lib/Server/Controller/Session/SessionCheckController.php b/src/lib/Server/Controller/Session/SessionCheckController.php index 7b35d860..d81098ee 100644 --- a/src/lib/Server/Controller/Session/SessionCheckController.php +++ b/src/lib/Server/Controller/Session/SessionCheckController.php @@ -8,26 +8,11 @@ namespace Ibexa\Rest\Server\Controller\Session; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; -use Ibexa\Contracts\Rest\Exceptions\UnauthorizedException; -use Ibexa\Rest\Server\Controller; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Security\CsrfTokenManager; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as SecurityTokenStorageInterface; -use Symfony\Component\Security\Core\Exception\AccessDeniedException; -use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Csrf\CsrfToken; #[Get( uriTemplate: '/user/sessions/current', diff --git a/src/lib/Server/Controller/Session/SessionCreateController.php b/src/lib/Server/Controller/Session/SessionCreateController.php index a95a9ee3..2742cfb4 100644 --- a/src/lib/Server/Controller/Session/SessionCreateController.php +++ b/src/lib/Server/Controller/Session/SessionCreateController.php @@ -8,26 +8,17 @@ namespace Ibexa\Rest\Server\Controller\Session; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; use Ibexa\Contracts\Rest\Exceptions\UnauthorizedException; -use Ibexa\Rest\Server\Controller; use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Security\CsrfTokenManager; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as SecurityTokenStorageInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Csrf\CsrfToken; #[Post( uriTemplate: '/user/sessions', diff --git a/src/lib/Server/Controller/Session/SessionDeleteController.php b/src/lib/Server/Controller/Session/SessionDeleteController.php index adcb93e4..4465a4be 100644 --- a/src/lib/Server/Controller/Session/SessionDeleteController.php +++ b/src/lib/Server/Controller/Session/SessionDeleteController.php @@ -9,25 +9,10 @@ namespace Ibexa\Rest\Server\Controller\Session; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; -use Ibexa\Contracts\Rest\Exceptions\UnauthorizedException; -use Ibexa\Rest\Server\Controller; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Security\CsrfTokenManager; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as SecurityTokenStorageInterface; -use Symfony\Component\Security\Core\Exception\AccessDeniedException; -use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Csrf\CsrfToken; #[Delete( uriTemplate: '/user/sessions/{sessionId}', diff --git a/src/lib/Server/Controller/Session/SessionRefreshController.php b/src/lib/Server/Controller/Session/SessionRefreshController.php index ada541e5..7eeadb06 100644 --- a/src/lib/Server/Controller/Session/SessionRefreshController.php +++ b/src/lib/Server/Controller/Session/SessionRefreshController.php @@ -8,26 +8,12 @@ namespace Ibexa\Rest\Server\Controller\Session; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; -use Ibexa\Contracts\Rest\Exceptions\UnauthorizedException; -use Ibexa\Rest\Server\Controller; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Security\CsrfTokenManager; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as SecurityTokenStorageInterface; -use Symfony\Component\Security\Core\Exception\AccessDeniedException; -use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Csrf\CsrfToken; #[Post( uriTemplate: '/user/sessions/{sessionId}/refresh', diff --git a/src/lib/Server/Controller/Trash/LocationTrashController.php b/src/lib/Server/Controller/Trash/LocationTrashController.php index 19ab46b0..2cf82e9a 100644 --- a/src/lib/Server/Controller/Trash/LocationTrashController.php +++ b/src/lib/Server/Controller/Trash/LocationTrashController.php @@ -7,26 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Trash; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\Values\Content\Query; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use InvalidArgumentException; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; use Webmozart\Assert\Assert; - class LocationTrashController extends RestController { public function __construct( diff --git a/src/lib/Server/Controller/Trash/TrashEmptyController.php b/src/lib/Server/Controller/Trash/TrashEmptyController.php index 8f236a97..30e3df6d 100644 --- a/src/lib/Server/Controller/Trash/TrashEmptyController.php +++ b/src/lib/Server/Controller/Trash/TrashEmptyController.php @@ -8,23 +8,12 @@ namespace Ibexa\Rest\Server\Controller\Trash; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\Values\Content\Query; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use InvalidArgumentException; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Webmozart\Assert\Assert; #[Delete( uriTemplate: '/content/trash', diff --git a/src/lib/Server/Controller/Trash/TrashItemDeleteController.php b/src/lib/Server/Controller/Trash/TrashItemDeleteController.php index 95f8d646..6f964de9 100644 --- a/src/lib/Server/Controller/Trash/TrashItemDeleteController.php +++ b/src/lib/Server/Controller/Trash/TrashItemDeleteController.php @@ -8,23 +8,12 @@ namespace Ibexa\Rest\Server\Controller\Trash; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\Values\Content\Query; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use InvalidArgumentException; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Webmozart\Assert\Assert; #[Delete( uriTemplate: '/content/trash/{trashItemid}', diff --git a/src/lib/Server/Controller/Trash/TrashItemListController.php b/src/lib/Server/Controller/Trash/TrashItemListController.php index bf6ae85a..000a38fd 100644 --- a/src/lib/Server/Controller/Trash/TrashItemListController.php +++ b/src/lib/Server/Controller/Trash/TrashItemListController.php @@ -7,24 +7,15 @@ namespace Ibexa\Rest\Server\Controller\Trash; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; use Ibexa\Contracts\Core\Repository\Values\Content\Query; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use InvalidArgumentException; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Webmozart\Assert\Assert; #[Get( uriTemplate: '/content/trash', diff --git a/src/lib/Server/Controller/Trash/TrashItemLoadByIdController.php b/src/lib/Server/Controller/Trash/TrashItemLoadByIdController.php index 098ffb72..2d363e0f 100644 --- a/src/lib/Server/Controller/Trash/TrashItemLoadByIdController.php +++ b/src/lib/Server/Controller/Trash/TrashItemLoadByIdController.php @@ -7,24 +7,13 @@ namespace Ibexa\Rest\Server\Controller\Trash; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\Values\Content\Query; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use InvalidArgumentException; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Webmozart\Assert\Assert; #[Get( uriTemplate: '/content/trash/{trashItemid}', diff --git a/src/lib/Server/Controller/Trash/TrashItemRestoreController.php b/src/lib/Server/Controller/Trash/TrashItemRestoreController.php index 5293bf0d..e7f33c07 100644 --- a/src/lib/Server/Controller/Trash/TrashItemRestoreController.php +++ b/src/lib/Server/Controller/Trash/TrashItemRestoreController.php @@ -7,25 +7,17 @@ namespace Ibexa\Rest\Server\Controller\Trash; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\TrashService; -use Ibexa\Contracts\Core\Repository\Values\Content\Query; use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use InvalidArgumentException; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Webmozart\Assert\Assert; - class TrashItemRestoreController extends RestController { diff --git a/src/lib/Server/Controller/URLAlias/URLAliasCreateController.php b/src/lib/Server/Controller/URLAlias/URLAliasCreateController.php index e7f6634a..6b80a7c1 100644 --- a/src/lib/Server/Controller/URLAlias/URLAliasCreateController.php +++ b/src/lib/Server/Controller/URLAlias/URLAliasCreateController.php @@ -7,8 +7,6 @@ namespace Ibexa\Rest\Server\Controller\URLAlias; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; diff --git a/src/lib/Server/Controller/URLAlias/URLAliasDeleteController.php b/src/lib/Server/Controller/URLAlias/URLAliasDeleteController.php index 2d2cd095..189bbd3f 100644 --- a/src/lib/Server/Controller/URLAlias/URLAliasDeleteController.php +++ b/src/lib/Server/Controller/URLAlias/URLAliasDeleteController.php @@ -8,19 +8,11 @@ namespace Ibexa\Rest\Server\Controller\URLAlias; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/URLAlias/URLAliasListGlobalController.php b/src/lib/Server/Controller/URLAlias/URLAliasListGlobalController.php index b44869c4..b872ac1c 100644 --- a/src/lib/Server/Controller/URLAlias/URLAliasListGlobalController.php +++ b/src/lib/Server/Controller/URLAlias/URLAliasListGlobalController.php @@ -7,20 +7,12 @@ namespace Ibexa\Rest\Server\Controller\URLAlias; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/URLAlias/URLAliasListLocationController.php b/src/lib/Server/Controller/URLAlias/URLAliasListLocationController.php index 107feda1..3773603a 100644 --- a/src/lib/Server/Controller/URLAlias/URLAliasListLocationController.php +++ b/src/lib/Server/Controller/URLAlias/URLAliasListLocationController.php @@ -7,19 +7,12 @@ namespace Ibexa\Rest\Server\Controller\URLAlias; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/lib/Server/Controller/URLAlias/URLAliasLoadByIdController.php b/src/lib/Server/Controller/URLAlias/URLAliasLoadByIdController.php index e5ba918a..76ffc9c2 100644 --- a/src/lib/Server/Controller/URLAlias/URLAliasLoadByIdController.php +++ b/src/lib/Server/Controller/URLAlias/URLAliasLoadByIdController.php @@ -7,20 +7,11 @@ namespace Ibexa\Rest\Server\Controller\URLAlias; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\LocationService; use Ibexa\Contracts\Core\Repository\URLAliasService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/URLWildcard/URLWildcardCreateController.php b/src/lib/Server/Controller/URLWildcard/URLWildcardCreateController.php index 99bdd41f..d009e519 100644 --- a/src/lib/Server/Controller/URLWildcard/URLWildcardCreateController.php +++ b/src/lib/Server/Controller/URLWildcard/URLWildcardCreateController.php @@ -7,8 +7,6 @@ namespace Ibexa\Rest\Server\Controller\URLWildcard; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; diff --git a/src/lib/Server/Controller/URLWildcard/URLWildcardDeleteController.php b/src/lib/Server/Controller/URLWildcard/URLWildcardDeleteController.php index 4f32edf1..dd1ad8ce 100644 --- a/src/lib/Server/Controller/URLWildcard/URLWildcardDeleteController.php +++ b/src/lib/Server/Controller/URLWildcard/URLWildcardDeleteController.php @@ -8,18 +8,10 @@ namespace Ibexa\Rest\Server\Controller\URLWildcard; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\URLWildcardService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Delete( diff --git a/src/lib/Server/Controller/URLWildcard/URLWildcardListController.php b/src/lib/Server/Controller/URLWildcard/URLWildcardListController.php index 08f2c41f..32daa45d 100644 --- a/src/lib/Server/Controller/URLWildcard/URLWildcardListController.php +++ b/src/lib/Server/Controller/URLWildcard/URLWildcardListController.php @@ -7,19 +7,11 @@ namespace Ibexa\Rest\Server\Controller\URLWildcard; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\URLWildcardService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/URLWildcard/URLWildcardLoadByIdController.php b/src/lib/Server/Controller/URLWildcard/URLWildcardLoadByIdController.php index a848ce26..69f27224 100644 --- a/src/lib/Server/Controller/URLWildcard/URLWildcardLoadByIdController.php +++ b/src/lib/Server/Controller/URLWildcard/URLWildcardLoadByIdController.php @@ -7,19 +7,10 @@ namespace Ibexa\Rest\Server\Controller\URLWildcard; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\URLWildcardService; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #[Get( diff --git a/src/lib/Server/Controller/User/UserAssignToUserGroupController.php b/src/lib/Server/Controller/User/UserAssignToUserGroupController.php index f74b70e8..96c6f6ab 100644 --- a/src/lib/Server/Controller/User/UserAssignToUserGroupController.php +++ b/src/lib/Server/Controller/User/UserAssignToUserGroupController.php @@ -8,38 +8,15 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Post( uriTemplate: '/user/users/{userId}/groups', diff --git a/src/lib/Server/Controller/User/UserBaseController.php b/src/lib/Server/Controller/User/UserBaseController.php index 1e006907..6120f6f7 100644 --- a/src/lib/Server/Controller/User/UserBaseController.php +++ b/src/lib/Server/Controller/User/UserBaseController.php @@ -8,12 +8,6 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; @@ -25,21 +19,11 @@ use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; class UserBaseController extends RestController { diff --git a/src/lib/Server/Controller/User/UserCreateController.php b/src/lib/Server/Controller/User/UserCreateController.php index aca18864..a79188f4 100644 --- a/src/lib/Server/Controller/User/UserCreateController.php +++ b/src/lib/Server/Controller/User/UserCreateController.php @@ -8,38 +8,16 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Post( uriTemplate: '/user/groups/{path}/users', diff --git a/src/lib/Server/Controller/User/UserDeleteController.php b/src/lib/Server/Controller/User/UserDeleteController.php index b7cbcf4e..5e65ecd9 100644 --- a/src/lib/Server/Controller/User/UserDeleteController.php +++ b/src/lib/Server/Controller/User/UserDeleteController.php @@ -9,37 +9,10 @@ namespace Ibexa\Rest\Server\Controller\User; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Delete( uriTemplate: '/user/users/{userId}', diff --git a/src/lib/Server/Controller/User/UserDraftListController.php b/src/lib/Server/Controller/User/UserDraftListController.php index 7f30fcb1..e48408ea 100644 --- a/src/lib/Server/Controller/User/UserDraftListController.php +++ b/src/lib/Server/Controller/User/UserDraftListController.php @@ -8,38 +8,11 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/users/{userId}/drafts', diff --git a/src/lib/Server/Controller/User/UserGroupCreateController.php b/src/lib/Server/Controller/User/UserGroupCreateController.php index d3b2bcde..d77c7681 100644 --- a/src/lib/Server/Controller/User/UserGroupCreateController.php +++ b/src/lib/Server/Controller/User/UserGroupCreateController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Post( uriTemplate: '/user/groups/subgroups', diff --git a/src/lib/Server/Controller/User/UserGroupDeleteController.php b/src/lib/Server/Controller/User/UserGroupDeleteController.php index b376c8be..a0aea3ab 100644 --- a/src/lib/Server/Controller/User/UserGroupDeleteController.php +++ b/src/lib/Server/Controller/User/UserGroupDeleteController.php @@ -9,37 +9,10 @@ namespace Ibexa\Rest\Server\Controller\User; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Delete( uriTemplate: '/user/groups/{path}', diff --git a/src/lib/Server/Controller/User/UserGroupListController.php b/src/lib/Server/Controller/User/UserGroupListController.php index af4fffa6..e9de7341 100644 --- a/src/lib/Server/Controller/User/UserGroupListController.php +++ b/src/lib/Server/Controller/User/UserGroupListController.php @@ -8,38 +8,14 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/groups', diff --git a/src/lib/Server/Controller/User/UserGroupLoadByPathController.php b/src/lib/Server/Controller/User/UserGroupLoadByPathController.php index 416bc686..678dc3d5 100644 --- a/src/lib/Server/Controller/User/UserGroupLoadByPathController.php +++ b/src/lib/Server/Controller/User/UserGroupLoadByPathController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/groups/{path}', diff --git a/src/lib/Server/Controller/User/UserGroupMoveController.php b/src/lib/Server/Controller/User/UserGroupMoveController.php index e688362c..670040f8 100644 --- a/src/lib/Server/Controller/User/UserGroupMoveController.php +++ b/src/lib/Server/Controller/User/UserGroupMoveController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; -use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions; use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; final class UserGroupMoveController extends UserBaseController { diff --git a/src/lib/Server/Controller/User/UserGroupOfRootLoadController.php b/src/lib/Server/Controller/User/UserGroupOfRootLoadController.php index 81370755..907cb558 100644 --- a/src/lib/Server/Controller/User/UserGroupOfRootLoadController.php +++ b/src/lib/Server/Controller/User/UserGroupOfRootLoadController.php @@ -8,38 +8,10 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/groups/root', diff --git a/src/lib/Server/Controller/User/UserGroupUpdateController.php b/src/lib/Server/Controller/User/UserGroupUpdateController.php index 6f1bc4b3..a6147b50 100644 --- a/src/lib/Server/Controller/User/UserGroupUpdateController.php +++ b/src/lib/Server/Controller/User/UserGroupUpdateController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Patch( uriTemplate: '/user/groups/{path}', diff --git a/src/lib/Server/Controller/User/UserGroupUsersListController.php b/src/lib/Server/Controller/User/UserGroupUsersListController.php index a777a0e5..0c50762b 100644 --- a/src/lib/Server/Controller/User/UserGroupUsersListController.php +++ b/src/lib/Server/Controller/User/UserGroupUsersListController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/groups/{path}/users', diff --git a/src/lib/Server/Controller/User/UserGroupsOfUserListController.php b/src/lib/Server/Controller/User/UserGroupsOfUserListController.php index 399efbba..ef9a8e52 100644 --- a/src/lib/Server/Controller/User/UserGroupsOfUserListController.php +++ b/src/lib/Server/Controller/User/UserGroupsOfUserListController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/users/{userId}/groups', diff --git a/src/lib/Server/Controller/User/UserListController.php b/src/lib/Server/Controller/User/UserListController.php index ab2e35c9..348cd40b 100644 --- a/src/lib/Server/Controller/User/UserListController.php +++ b/src/lib/Server/Controller/User/UserListController.php @@ -8,38 +8,9 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; -use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/users', diff --git a/src/lib/Server/Controller/User/UserLoadByIdController.php b/src/lib/Server/Controller/User/UserLoadByIdController.php index e175513a..a63c7430 100644 --- a/src/lib/Server/Controller/User/UserLoadByIdController.php +++ b/src/lib/Server/Controller/User/UserLoadByIdController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/users/{userId}', diff --git a/src/lib/Server/Controller/User/UserRedirectToCurrentUserController.php b/src/lib/Server/Controller/User/UserRedirectToCurrentUserController.php index d26fd202..12fd43d1 100644 --- a/src/lib/Server/Controller/User/UserRedirectToCurrentUserController.php +++ b/src/lib/Server/Controller/User/UserRedirectToCurrentUserController.php @@ -8,35 +8,9 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; use Symfony\Component\Security\Core\User\UserInterface; diff --git a/src/lib/Server/Controller/User/UserSubGroupListController.php b/src/lib/Server/Controller/User/UserSubGroupListController.php index 8ef9189b..29d4de14 100644 --- a/src/lib/Server/Controller/User/UserSubGroupListController.php +++ b/src/lib/Server/Controller/User/UserSubGroupListController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Get( uriTemplate: '/user/groups/{path}/subgroups', diff --git a/src/lib/Server/Controller/User/UserUnassignFromUserGroupController.php b/src/lib/Server/Controller/User/UserUnassignFromUserGroupController.php index 0f365334..8802ac8c 100644 --- a/src/lib/Server/Controller/User/UserUnassignFromUserGroupController.php +++ b/src/lib/Server/Controller/User/UserUnassignFromUserGroupController.php @@ -9,37 +9,11 @@ namespace Ibexa\Rest\Server\Controller\User; use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Delete( uriTemplate: '/user/users/{userId}/groups/{groupId}', diff --git a/src/lib/Server/Controller/User/UserUpdateController.php b/src/lib/Server/Controller/User/UserUpdateController.php index ea5204fa..be4dc460 100644 --- a/src/lib/Server/Controller/User/UserUpdateController.php +++ b/src/lib/Server/Controller/User/UserUpdateController.php @@ -8,38 +8,13 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; -use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Patch( uriTemplate: '/user/users/{userId}', diff --git a/src/lib/Server/Controller/User/UserVerifyController.php b/src/lib/Server/Controller/User/UserVerifyController.php index 3eaeca50..fb8082f8 100644 --- a/src/lib/Server/Controller/User/UserVerifyController.php +++ b/src/lib/Server/Controller/User/UserVerifyController.php @@ -8,39 +8,12 @@ namespace Ibexa\Rest\Server\Controller\User; -use ApiPlatform\Metadata\Delete; -use ApiPlatform\Metadata\Get; -use ApiPlatform\Metadata\Patch; -use ApiPlatform\Metadata\Post; -use ApiPlatform\OpenApi\Factory\OpenApiFactory; use ApiPlatform\OpenApi\Model; use Ibexa\Bundle\Rest\ApiPlatform\Head; -use Ibexa\Contracts\Core\Repository\ContentService; -use Ibexa\Contracts\Core\Repository\ContentTypeService; -use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions; -use Ibexa\Contracts\Core\Repository\LocationService; -use Ibexa\Contracts\Core\Repository\PermissionResolver; -use Ibexa\Contracts\Core\Repository\Repository; -use Ibexa\Contracts\Core\Repository\RoleService; -use Ibexa\Contracts\Core\Repository\SectionService; -use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Contracts\Core\Repository\Values\Content\Language; -use Ibexa\Contracts\Core\Repository\Values\User\User as RepositoryUser; -use Ibexa\Contracts\Core\Repository\Values\User\UserGroupRoleAssignment; -use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment; use Ibexa\Contracts\Rest\Exceptions\NotFoundException; -use Ibexa\Core\Base\Exceptions\UnauthorizedException; -use Ibexa\Rest\Message; -use Ibexa\Rest\Server\Controller as RestController; -use Ibexa\Rest\Server\Exceptions; -use Ibexa\Rest\Server\Exceptions\ForbiddenException; use Ibexa\Rest\Server\Values; -use Ibexa\Rest\Value as RestValue; -use JMS\TranslationBundle\Annotation\Ignore; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; -use Symfony\Component\Security\Core\User\UserInterface; #[Head( uriTemplate: '/user/users',