Skip to content

Commit 26f130a

Browse files
authored
IBX-8139: Dropped class_alias BC layer statements from all classes (#1267)
For more details see https://issues.ibexa.co/browse/IBX-8139 and #1267 Key changes: * Dropped class_alias BC layer from production code * Dropped class_alias BC layer from test code * [Composer] Dropped legacy namespaces from autoload section * [Composer] Dropped redundant symfony/webpack-encore-bundle * Dropped deprecated Search\DateIntervalType * [PHPStan] Regenerated baseline after the changes
1 parent 0546abe commit 26f130a

File tree

868 files changed

+3
-1830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

868 files changed

+3
-1830
lines changed

composer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
"psr-4": {
1111
"Ibexa\\AdminUi\\": "src/lib/",
1212
"Ibexa\\Bundle\\AdminUi\\": "src/bundle/",
13-
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/",
14-
"EzSystems\\EzPlatformAdminUiBundle\\": "src/bundle/",
15-
"EzSystems\\EzPlatformAdminUi\\": "src/lib/",
16-
"EzSystems\\EzPlatformEncoreBundle\\": "src/bundle/",
17-
"Ibexa\\Platform\\Bundle\\Assets\\": "src/bundle/",
18-
"Ibexa\\Platform\\Assets\\": "src/lib/"
13+
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/"
1914
}
2015
},
2116
"autoload-dev": {
@@ -77,8 +72,7 @@
7772
"phpstan/phpstan": "^1.10",
7873
"phpstan/phpstan-phpunit": "^1.3",
7974
"phpstan/phpstan-symfony": "^1.3",
80-
"phpunit/phpunit": "^9.5",
81-
"symfony/webpack-encore-bundle": "^1.17.2"
75+
"phpunit/phpunit": "^9.5"
8276
},
8377
"config": {
8478
"allow-plugins": {

phpstan-baseline.neon

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,11 +3800,6 @@ parameters:
38003800
count: 1
38013801
path: src/lib/Exception/ValueMapperNotFoundException.php
38023802

3803-
-
3804-
message: "#^Class EzSystems\\\\RepositoryForms\\\\FieldType\\\\FieldDefinitionFormMapperInterface not found\\.$#"
3805-
count: 1
3806-
path: src/lib/FieldType/FieldDefinitionFormMapperInterface.php
3807-
38083803
-
38093804
message: "#^Method Ibexa\\\\AdminUi\\\\FieldType\\\\Mapper\\\\AuthorFormMapper\\:\\:mapFieldValueForm\\(\\) has no return type specified\\.$#"
38103805
count: 1
@@ -4195,11 +4190,6 @@ parameters:
41954190
count: 1
41964191
path: src/lib/Form/Data/ContentTypeGroupData.php
41974192

4198-
-
4199-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Data\\\\FieldDefinitionData not found\\.$#"
4200-
count: 1
4201-
path: src/lib/Form/Data/FieldDefinitionData.php
4202-
42034193
-
42044194
message: "#^Method Ibexa\\\\AdminUi\\\\Form\\\\Data\\\\FieldDefinitionData\\:\\:getFieldTypeIdentifier\\(\\) has no return type specified\\.$#"
42054195
count: 1
@@ -7280,11 +7270,6 @@ parameters:
72807270
count: 1
72817271
path: src/lib/Form/Type/RoleAssignment/RoleAssignmentType.php
72827272

7283-
-
7284-
message: "#^If condition is always false\\.$#"
7285-
count: 1
7286-
path: src/lib/Form/Type/Search/DateIntervalType.php
7287-
72887273
-
72897274
message: "#^Method Ibexa\\\\AdminUi\\\\Form\\\\Type\\\\Search\\\\SearchType\\:\\:buildForm\\(\\) has no return type specified\\.$#"
72907275
count: 1
@@ -7580,11 +7565,6 @@ parameters:
75807565
count: 1
75817566
path: src/lib/Form/Type/Version/VersionRemoveType.php
75827567

7583-
-
7584-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationFormMapperInterface not found\\.$#"
7585-
count: 1
7586-
path: src/lib/Limitation/LimitationFormMapperInterface.php
7587-
75887568
-
75897569
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationFormMapperInterface\\:\\:filterLimitationValues\\(\\) has no return type specified\\.$#"
75907570
count: 1
@@ -7600,11 +7580,6 @@ parameters:
76007580
count: 1
76017581
path: src/lib/Limitation/LimitationFormMapperRegistry.php
76027582

7603-
-
7604-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationFormMapperRegistryInterface not found\\.$#"
7605-
count: 1
7606-
path: src/lib/Limitation/LimitationFormMapperRegistryInterface.php
7607-
76087583
-
76097584
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationFormMapperRegistryInterface\\:\\:addMapper\\(\\) has no return type specified\\.$#"
76107585
count: 1
@@ -7615,21 +7590,11 @@ parameters:
76157590
count: 1
76167591
path: src/lib/Limitation/LimitationFormMapperRegistryInterface.php
76177592

7618-
-
7619-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationValueMapperInterface not found\\.$#"
7620-
count: 1
7621-
path: src/lib/Limitation/LimitationValueMapperInterface.php
7622-
76237593
-
76247594
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationValueMapperRegistry\\:\\:addMapper\\(\\) has no return type specified\\.$#"
76257595
count: 1
76267596
path: src/lib/Limitation/LimitationValueMapperRegistry.php
76277597

7628-
-
7629-
message: "#^Class EzSystems\\\\RepositoryForms\\\\Limitation\\\\LimitationValueMapperRegistryInterface not found\\.$#"
7630-
count: 1
7631-
path: src/lib/Limitation/LimitationValueMapperRegistryInterface.php
7632-
76337598
-
76347599
message: "#^Method Ibexa\\\\AdminUi\\\\Limitation\\\\LimitationValueMapperRegistryInterface\\:\\:addMapper\\(\\) has no return type specified\\.$#"
76357600
count: 1

src/bundle/Command/CompileAssetsCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,3 @@ public function getDeprecatedAliases(): array
131131
return ['ezplatform:encore:compile'];
132132
}
133133
}
134-
135-
class_alias(CompileAssetsCommand::class, 'EzSystems\EzPlatformEncoreBundle\Command\CompileAssetsCommand');

src/bundle/Controller/AssetController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,3 @@ private function isValidCsrfToken(Request $request): bool
167167
);
168168
}
169169
}
170-
171-
class_alias(AssetController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\AssetController');

src/bundle/Controller/BookmarkController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,3 @@ private function getChoices(array $bookmarks): array
135135
return array_combine($bookmarks, array_fill_keys($bookmarks, false));
136136
}
137137
}
138-
139-
class_alias(BookmarkController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\BookmarkController');

src/bundle/Controller/BulkOperation/BulkOperationController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,3 @@ private function buildSubRequest(Request $request, Operation $operation): Reques
9292
return $subRequest;
9393
}
9494
}
95-
96-
class_alias(BulkOperationController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\BulkOperation\BulkOperationController');

src/bundle/Controller/Content/ContentTreeController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,3 @@ private function canUserHideContent(Location $location): bool
246246
);
247247
}
248248
}
249-
250-
class_alias(ContentTreeController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\Content\ContentTreeController');

src/bundle/Controller/Content/VersionDraftConflictController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,3 @@ public function draftHasNoConflictAction(
116116
return new Response();
117117
}
118118
}
119-
120-
class_alias(VersionDraftConflictController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\Content\VersionDraftConflictController');

src/bundle/Controller/ContentController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,5 +608,3 @@ public function relationViewAction(int $contentId): Response
608608
]);
609609
}
610610
}
611-
612-
class_alias(ContentController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentController');

src/bundle/Controller/ContentDraftController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,3 @@ private function createContentRemoveData(Pagerfanta $pagerfanta): ContentRemoveD
133133
);
134134
}
135135
}
136-
137-
class_alias(ContentDraftController::class, 'EzSystems\EzPlatformAdminUiBundle\Controller\ContentDraftController');

0 commit comments

Comments
 (0)