Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"psr-4": {
"Ibexa\\AdminUi\\": "src/lib/",
"Ibexa\\Bundle\\AdminUi\\": "src/bundle/",
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/",
"EzSystems\\EzPlatformAdminUiBundle\\": "src/bundle/",
"EzSystems\\EzPlatformAdminUi\\": "src/lib/",
"EzSystems\\EzPlatformEncoreBundle\\": "src/bundle/",
"Ibexa\\Platform\\Bundle\\Assets\\": "src/bundle/",
"Ibexa\\Platform\\Assets\\": "src/lib/"
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -76,8 +71,7 @@
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^9.5",
"symfony/webpack-encore-bundle": "^1.17.2"
"phpunit/phpunit": "^9.5"
},
"config": {
"allow-plugins": {
Expand Down
35 changes: 0 additions & 35 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3800,11 +3800,6 @@ parameters:
count: 1
path: src/lib/Exception/ValueMapperNotFoundException.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\FieldType\\\\FieldDefinitionFormMapperInterface not found\\.$#"
count: 1
path: src/lib/FieldType/FieldDefinitionFormMapperInterface.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\FieldType\\\\Mapper\\\\AuthorFormMapper\\:\\:mapFieldValueForm\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -4195,11 +4190,6 @@ parameters:
count: 1
path: src/lib/Form/Data/ContentTypeGroupData.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Data\\\\FieldDefinitionData not found\\.$#"
count: 1
path: src/lib/Form/Data/FieldDefinitionData.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Form\\\\Data\\\\FieldDefinitionData\\:\\:getFieldTypeIdentifier\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -7280,11 +7270,6 @@ parameters:
count: 1
path: src/lib/Form/Type/RoleAssignment/RoleAssignmentType.php

-
message: "#^If condition is always false\\.$#"
count: 1
path: src/lib/Form/Type/Search/DateIntervalType.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Form\\\\Type\\\\Search\\\\SearchType\\:\\:buildForm\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -7580,11 +7565,6 @@ parameters:
count: 1
path: src/lib/Form/Type/Version/VersionRemoveType.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationFormMapperInterface not found\\.$#"
count: 1
path: src/lib/Limitation/LimitationFormMapperInterface.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationFormMapperInterface\\:\\:filterLimitationValues\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -7600,11 +7580,6 @@ parameters:
count: 1
path: src/lib/Limitation/LimitationFormMapperRegistry.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationFormMapperRegistryInterface not found\\.$#"
count: 1
path: src/lib/Limitation/LimitationFormMapperRegistryInterface.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationFormMapperRegistryInterface\\:\\:addMapper\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -7615,21 +7590,11 @@ parameters:
count: 1
path: src/lib/Limitation/LimitationFormMapperRegistryInterface.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationValueMapperInterface not found\\.$#"
count: 1
path: src/lib/Limitation/LimitationValueMapperInterface.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationValueMapperRegistry\\:\\:addMapper\\(\\) has no return type specified\\.$#"
count: 1
path: src/lib/Limitation/LimitationValueMapperRegistry.php

-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationValueMapperRegistryInterface not found\\.$#"
count: 1
path: src/lib/Limitation/LimitationValueMapperRegistryInterface.php

-
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationValueMapperRegistryInterface\\:\\:addMapper\\(\\) has no return type specified\\.$#"
count: 1
Expand Down
2 changes: 0 additions & 2 deletions src/bundle/Command/CompileAssetsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ public function getDeprecatedAliases(): array
return ['ezplatform:encore:compile'];
}
}

class_alias(CompileAssetsCommand::class, 'EzSystems\EzPlatformEncoreBundle\Command\CompileAssetsCommand');
2 changes: 0 additions & 2 deletions src/bundle/Controller/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,3 @@ private function isValidCsrfToken(Request $request): bool
);
}
}

class_alias(AssetController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\AssetController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/BookmarkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,3 @@ private function getChoices(array $bookmarks): array
return array_combine($bookmarks, array_fill_keys($bookmarks, false));
}
}

class_alias(BookmarkController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\BookmarkController');
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,3 @@ private function buildSubRequest(Request $request, Operation $operation): Reques
return $subRequest;
}
}

class_alias(BulkOperationController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\BulkOperation\BulkOperationController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/Content/ContentTreeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,3 @@ private function canUserHideContent(Location $location): bool
);
}
}

class_alias(ContentTreeController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\Content\ContentTreeController');
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,3 @@ public function draftHasNoConflictAction(
return new Response();
}
}

class_alias(VersionDraftConflictController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\Content\VersionDraftConflictController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,5 +608,3 @@ public function relationViewAction(int $contentId): Response
]);
}
}

class_alias(ContentController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,3 @@ private function createContentRemoveData(Pagerfanta $pagerfanta): ContentRemoveD
);
}
}

class_alias(ContentDraftController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentDraftController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentEditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ public function cancelEditVersionDraftAction(
return $response ?? $this->redirectToLocation($referrerlocation);
}
}

class_alias(ContentEditController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentEditController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentOnTheFlyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,3 @@ private function buildEditView(
return $view;
}
}

class_alias(ContentOnTheFlyController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentOnTheFlyController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,5 +868,3 @@ private function tryToCreateContentTypeDraft(ContentType $contentType): ContentT
}
}
}

class_alias(ContentTypeController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentTypeController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentTypeGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,3 @@ private function getContentTypeGroupsNumbers(array $contentTypeGroups): array
return array_combine($contentTypeGroupsNumbers, array_fill_keys($contentTypeGroupsNumbers, false));
}
}

class_alias(ContentTypeGroupController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentTypeGroupController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ContentViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,5 +589,3 @@ private function getInvitationForm(Content $content): FormInterface
);
}
}

class_alias(ContentViewController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentViewController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ public function dashboardAction(): Response
]);
}
}

class_alias(DashboardController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\DashboardController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,3 @@ private function getLanguagesNumbers(array $languages): array
return array_combine($languagesNumbers, array_fill_keys($languagesNumbers, false));
}
}

class_alias(LanguageController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\LanguageController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/LinkManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,3 @@ public function viewAction(Request $request, int $urlId): Response
]);
}
}

class_alias(LinkManagerController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\LinkManagerController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/LocationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,5 +668,3 @@ public function assignSectionAction(Request $request): Response
return $this->redirectToRoute('ibexa.dashboard');
}
}

class_alias(LocationController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\LocationController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/NotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,3 @@ public function markNotificationAsReadAction(Request $request, $notificationId):
return $response;
}
}

class_alias(NotificationController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\NotificationController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ObjectStateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,5 +385,3 @@ private function getObjectStatesIds(array $states): array
return array_combine($statesIds, array_fill_keys($statesIds, false));
}
}

class_alias(ObjectStateController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ObjectStateController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/ObjectStateGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,3 @@ private function getObjectStateGroupsIds(array $groups): array
return array_combine($groupsIds, array_fill_keys($groupsIds, false));
}
}

class_alias(ObjectStateGroupController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ObjectStateGroupController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/PolicyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,5 +452,3 @@ private function getPoliciesNumbers(array $policies): array
return array_combine($policiesNumbers, array_fill_keys($policiesNumbers, false));
}
}

class_alias(PolicyController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\PolicyController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/RoleAssignmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,3 @@ private function createLimitations(RoleAssignmentCreateData $data): array
return $limitations;
}
}

class_alias(RoleAssignmentController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\RoleAssignmentController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,3 @@ public function bulkDeleteAction(Request $request): Response
return new RedirectResponse($this->generateUrl('ibexa.role.list'));
}
}

class_alias(RoleController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\RoleController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/SectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,5 +527,3 @@ private function canUserAssignSectionToSomeContent(Section $section): bool
return true;
}
}

class_alias(SectionController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\SectionController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,3 @@ public function removeAction(Request $request): Response
]));
}
}

class_alias(TranslationController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\TranslationController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/TrashController.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,3 @@ private function getCreatorFromTrashItem(TrashItem $trashItem): ?User
return $this->userService->loadUser($trashItem->getContentInfo()->ownerId);
}
}

class_alias(TrashController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\TrashController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/URLManagementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ public function urlManagementAction(): Response
return $this->render('@ibexadesign/url_management/url_management.html.twig');
}
}

class_alias(URLManagementController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\URLManagementController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/URLWildcardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,3 @@ public function bulkDeleteAction(Request $request): Response
]));
}
}

class_alias(URLWildcardController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\URLWildcardController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/UniversalDiscoveryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,3 @@ public function accordionGridViewAction(RequestQuery $requestQuery): AccordionDa
);
}
}

class_alias(UniversalDiscoveryController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\UniversalDiscoveryController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/UrlAliasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,3 @@ public function removeAction(Request $request): Response
return $this->redirectToRoute('ibexa.dashboard');
}
}

class_alias(UrlAliasController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\UrlAliasController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/User/UserDeleteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,3 @@ public function userDeleteAction(Request $request): Response
return $this->redirect($this->generateUrl('ibexa.dashboard'));
}
}

class_alias(UserDeleteController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\User\UserDeleteController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/UserOnTheFlyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,5 +278,3 @@ private function buildEditView(
return $view;
}
}

class_alias(UserOnTheFlyController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\UserOnTheFlyController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/Version/VersionConflictController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,3 @@ public function versionHasNoConflictAction(int $contentId, int $versionNo, strin
return new Response();
}
}

class_alias(VersionConflictController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\Version\VersionConflictController');
2 changes: 0 additions & 2 deletions src/bundle/Controller/VersionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,3 @@ public function removeAction(Request $request): Response
]));
}
}

class_alias(VersionController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\VersionController');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/ComponentPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function process(ContainerBuilder $container): void
}
}
}

class_alias(ComponentPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\ComponentPass');
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public function process(ContainerBuilder $container)
}
}
}

class_alias(FieldTypeFormMapperDispatcherPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\FieldTypeFormMapperDispatcherPass');
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public function process(ContainerBuilder $container)
}
}
}

class_alias(LimitationFormMapperPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\LimitationFormMapperPass');
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ public function process(ContainerBuilder $container)
}
}
}

class_alias(LimitationValueMapperPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\LimitationValueMapperPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/TabPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function process(ContainerBuilder $container): void
}
}
}

class_alias(TabPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\TabPass');
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ public function process(ContainerBuilder $container): void
}
}
}

class_alias(UiConfigProviderPass::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\UiConfigProviderPass');
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,3 @@ private function processContentEditFormTemplates(array $formTemplates)
return array_column($formTemplates, 'template');
}
}

class_alias(AdminUiForms::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\AdminUiForms');
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
}
}
}

class_alias(Assets::class, 'Ibexa\Platform\Bundle\Assets\DependencyInjection\Configuration\Parser\Assets');
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ class ContentTranslateView extends View
public const NODE_KEY = 'content_translate_view';
public const INFO = 'Template selection settings when displaying a content translate form';
}

class_alias(ContentTranslateView::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\ContentTranslateView');
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ public function addSemanticConfig(NodeBuilder $nodeBuilder)
->end();
}
}

class_alias(ContentType::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\ContentType');
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ class LimitationValueTemplates extends Templates
public const INFO = 'Settings for limitation value templates';
public const INFO_TEMPLATE_KEY = 'Template file where to find block definition to display limitation values';
}

class_alias(LimitationValueTemplates::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\LimitationValueTemplates');
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
}
}
}

class_alias(LocationIds::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\LocationIds');
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
}
}
}

class_alias(ContentTree::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\Module\ContentTree');
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
);
}
}

class_alias(Subitems::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\Module\Subitems');
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
);
}
}

class_alias(UniversalDiscoveryWidget::class, 'EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Configuration\Parser\Module\UniversalDiscoveryWidget');
Loading