diff --git a/composer.json b/composer.json index 0a536f3..5bca5df 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,7 @@ "psr-4": { "Ibexa\\Bundle\\FieldTypeQuery\\": "src/bundle/", "Ibexa\\FieldTypeQuery\\": "src/lib/", - "Ibexa\\Contracts\\FieldTypeQuery\\": "src/contracts/", - "EzSystems\\EzPlatformQueryFieldType\\": "src/lib/" + "Ibexa\\Contracts\\FieldTypeQuery\\": "src/contracts/" } }, "autoload-dev": { diff --git a/src/bundle/Controller/QueryFieldRestController.php b/src/bundle/Controller/QueryFieldRestController.php index c368629..379280b 100644 --- a/src/bundle/Controller/QueryFieldRestController.php +++ b/src/bundle/Controller/QueryFieldRestController.php @@ -122,5 +122,3 @@ private function loadLocationByPath(Request $request): Location return $this->locationService->loadLocation((int)$locationId); } } - -class_alias(QueryFieldRestController::class, 'EzSystems\EzPlatformQueryFieldType\Controller\QueryFieldRestController'); diff --git a/src/bundle/DependencyInjection/Compiler/ConfigurableFieldDefinitionMapperPass.php b/src/bundle/DependencyInjection/Compiler/ConfigurableFieldDefinitionMapperPass.php index 029b8d0..af4925c 100644 --- a/src/bundle/DependencyInjection/Compiler/ConfigurableFieldDefinitionMapperPass.php +++ b/src/bundle/DependencyInjection/Compiler/ConfigurableFieldDefinitionMapperPass.php @@ -33,5 +33,3 @@ public function process(ContainerBuilder $container) $container->setParameter(self::PARAMETER, $parameter); } } - -class_alias(ConfigurableFieldDefinitionMapperPass::class, 'EzSystems\EzPlatformQueryFieldType\Symfony\DependencyInjection\Compiler\ConfigurableFieldDefinitionMapperPass'); diff --git a/src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php b/src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php index c5fe886..4847ccd 100644 --- a/src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php +++ b/src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php @@ -43,5 +43,3 @@ static function ($parameterName) { } } } - -class_alias(FieldDefinitionIdentifierViewMatcherPass::class, 'EzSystems\EzPlatformQueryFieldType\Symfony\DependencyInjection\Compiler\FieldDefinitionIdentifierViewMatcherPass'); diff --git a/src/bundle/DependencyInjection/Compiler/QueryTypesListPass.php b/src/bundle/DependencyInjection/Compiler/QueryTypesListPass.php index a0644fe..b6eccde 100644 --- a/src/bundle/DependencyInjection/Compiler/QueryTypesListPass.php +++ b/src/bundle/DependencyInjection/Compiler/QueryTypesListPass.php @@ -60,5 +60,3 @@ private function buildQueryTypeName($queryTypeIdentifier) ); } } - -class_alias(QueryTypesListPass::class, 'EzSystems\EzPlatformQueryFieldType\Symfony\DependencyInjection\Compiler\QueryTypesListPass'); diff --git a/src/bundle/DependencyInjection/IbexaFieldTypeQueryExtension.php b/src/bundle/DependencyInjection/IbexaFieldTypeQueryExtension.php index c8a1667..42da01f 100644 --- a/src/bundle/DependencyInjection/IbexaFieldTypeQueryExtension.php +++ b/src/bundle/DependencyInjection/IbexaFieldTypeQueryExtension.php @@ -110,5 +110,3 @@ private function prependGraphQL(ContainerBuilder $container): void ]); } } - -class_alias(IbexaFieldTypeQueryExtension::class, 'EzSystems\EzPlatformQueryFieldType\Symfony\DependencyInjection\EzSystemsEzPlatformQueryFieldTypeExtension'); diff --git a/src/bundle/IbexaFieldTypeQueryBundle.php b/src/bundle/IbexaFieldTypeQueryBundle.php index 2de0c65..4ac035b 100644 --- a/src/bundle/IbexaFieldTypeQueryBundle.php +++ b/src/bundle/IbexaFieldTypeQueryBundle.php @@ -20,5 +20,3 @@ public function build(ContainerBuilder $container) $container->addCompilerPass(new Compiler\FieldDefinitionIdentifierViewMatcherPass()); } } - -class_alias(IbexaFieldTypeQueryBundle::class, 'EzSystems\EzPlatformQueryFieldType\Symfony\EzSystemsEzPlatformQueryFieldTypeBundle'); diff --git a/src/contracts/QueryFieldLocationService.php b/src/contracts/QueryFieldLocationService.php index 72fe830..e3d7adb 100644 --- a/src/contracts/QueryFieldLocationService.php +++ b/src/contracts/QueryFieldLocationService.php @@ -33,5 +33,3 @@ public function loadContentItemsSliceForLocation(Location $location, string $fie */ public function countContentItemsForLocation(Location $location, string $fieldDefinitionIdentifier): int; } - -class_alias(QueryFieldLocationService::class, 'EzSystems\EzPlatformQueryFieldType\API\QueryFieldLocationService'); diff --git a/src/contracts/QueryFieldServiceInterface.php b/src/contracts/QueryFieldServiceInterface.php index f6d1ead..7c734c9 100644 --- a/src/contracts/QueryFieldServiceInterface.php +++ b/src/contracts/QueryFieldServiceInterface.php @@ -62,5 +62,3 @@ public function loadContentItemsSlice(Content $content, string $fieldDefinitionI */ public function getPaginationConfiguration(Content $content, string $fieldDefinitionIdentifier): int; } - -class_alias(QueryFieldServiceInterface::class, 'EzSystems\EzPlatformQueryFieldType\API\QueryFieldServiceInterface'); diff --git a/src/lib/ContentView/FieldDefinitionIdentifierMatcher.php b/src/lib/ContentView/FieldDefinitionIdentifierMatcher.php index e97797f..feda515 100644 --- a/src/lib/ContentView/FieldDefinitionIdentifierMatcher.php +++ b/src/lib/ContentView/FieldDefinitionIdentifierMatcher.php @@ -83,5 +83,3 @@ public function match(View $view) return in_array($view->getParameter('fieldIdentifier'), $this->getValues(), true); } } - -class_alias(FieldDefinitionIdentifierMatcher::class, 'EzSystems\EzPlatformQueryFieldType\eZ\ContentView\FieldDefinitionIdentifierMatcher'); diff --git a/src/lib/ContentView/QueryResultsInjector.php b/src/lib/ContentView/QueryResultsInjector.php index 80fdbe5..2a6f764 100644 --- a/src/lib/ContentView/QueryResultsInjector.php +++ b/src/lib/ContentView/QueryResultsInjector.php @@ -153,5 +153,3 @@ private function buildResults(FilterViewParametersEvent $event): iterable } } } - -class_alias(QueryResultsInjector::class, 'EzSystems\EzPlatformQueryFieldType\eZ\ContentView\QueryResultsInjector'); diff --git a/src/lib/ContentView/QueryResultsPagerFantaAdapter.php b/src/lib/ContentView/QueryResultsPagerFantaAdapter.php index a49cf9a..c167b0b 100644 --- a/src/lib/ContentView/QueryResultsPagerFantaAdapter.php +++ b/src/lib/ContentView/QueryResultsPagerFantaAdapter.php @@ -50,5 +50,3 @@ public function getSlice($offset, $length) ); } } - -class_alias(QueryResultsPagerFantaAdapter::class, 'EzSystems\EzPlatformQueryFieldType\eZ\ContentView\QueryResultsPagerFantaAdapter'); diff --git a/src/lib/ContentView/QueryResultsWithLocationPagerFantaAdapter.php b/src/lib/ContentView/QueryResultsWithLocationPagerFantaAdapter.php index fbcbd88..ad2dd5f 100644 --- a/src/lib/ContentView/QueryResultsWithLocationPagerFantaAdapter.php +++ b/src/lib/ContentView/QueryResultsWithLocationPagerFantaAdapter.php @@ -50,5 +50,3 @@ public function getSlice($offset, $length) ); } } - -class_alias(QueryResultsWithLocationPagerFantaAdapter::class, 'EzSystems\EzPlatformQueryFieldType\eZ\ContentView\QueryResultsWithLocationPagerFantaAdapter'); diff --git a/src/lib/ExceptionSafeQueryFieldService.php b/src/lib/ExceptionSafeQueryFieldService.php index 6f7c866..44448df 100644 --- a/src/lib/ExceptionSafeQueryFieldService.php +++ b/src/lib/ExceptionSafeQueryFieldService.php @@ -115,5 +115,3 @@ public function countContentItemsForLocation(Location $location, string $fieldDe } } } - -class_alias(ExceptionSafeQueryFieldService::class, 'EzSystems\EzPlatformQueryFieldType\API\ExceptionSafeQueryFieldService'); diff --git a/src/lib/FieldType/Form/QueryFieldFormType.php b/src/lib/FieldType/Form/QueryFieldFormType.php index 7a68d62..d937ecf 100644 --- a/src/lib/FieldType/Form/QueryFieldFormType.php +++ b/src/lib/FieldType/Form/QueryFieldFormType.php @@ -43,5 +43,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addModelTransformer(new FieldValueTransformer($this->fieldTypeService->getFieldType('ezcontentquery'))); } } - -class_alias(QueryFieldFormType::class, 'EzSystems\EzPlatformQueryFieldType\eZ\FieldType\Form\QueryFieldFormType'); diff --git a/src/lib/FieldType/Mapper/ParametersTransformer.php b/src/lib/FieldType/Mapper/ParametersTransformer.php index 2824511..e983f41 100644 --- a/src/lib/FieldType/Mapper/ParametersTransformer.php +++ b/src/lib/FieldType/Mapper/ParametersTransformer.php @@ -30,5 +30,3 @@ public function reverseTransform($value) return Yaml::parse($value); } } - -class_alias(ParametersTransformer::class, 'EzSystems\EzPlatformQueryFieldType\eZ\FieldType\Mapper\ParametersTransformer'); diff --git a/src/lib/FieldType/Mapper/QueryFormMapper.php b/src/lib/FieldType/Mapper/QueryFormMapper.php index cb91cbe..a46c30a 100644 --- a/src/lib/FieldType/Mapper/QueryFormMapper.php +++ b/src/lib/FieldType/Mapper/QueryFormMapper.php @@ -105,5 +105,3 @@ private function getContentTypes() } } } - -class_alias(QueryFormMapper::class, 'EzSystems\EzPlatformQueryFieldType\eZ\FieldType\Mapper\QueryFormMapper'); diff --git a/src/lib/FieldType/Query/Type.php b/src/lib/FieldType/Query/Type.php index 1d3b1ec..7d1d87c 100644 --- a/src/lib/FieldType/Query/Type.php +++ b/src/lib/FieldType/Query/Type.php @@ -248,5 +248,3 @@ public static function getTranslationMessages(): array ]; } } - -class_alias(Type::class, 'EzSystems\EzPlatformQueryFieldType\eZ\FieldType\Query\Type'); diff --git a/src/lib/FieldType/Query/Value.php b/src/lib/FieldType/Query/Value.php index 698fd9e..0395953 100644 --- a/src/lib/FieldType/Query/Value.php +++ b/src/lib/FieldType/Query/Value.php @@ -36,5 +36,3 @@ public function __toString() return (string)$this->text; } } - -class_alias(Value::class, 'EzSystems\EzPlatformQueryFieldType\eZ\FieldType\Query\Value'); diff --git a/src/lib/GraphQL/ContentQueryFieldDefinitionMapper.php b/src/lib/GraphQL/ContentQueryFieldDefinitionMapper.php index 2732c9f..093ac96 100644 --- a/src/lib/GraphQL/ContentQueryFieldDefinitionMapper.php +++ b/src/lib/GraphQL/ContentQueryFieldDefinitionMapper.php @@ -107,5 +107,3 @@ private function nameValueConnectionType($typeIdentifier): string ); } } - -class_alias(ContentQueryFieldDefinitionMapper::class, 'EzSystems\EzPlatformQueryFieldType\GraphQL\ContentQueryFieldDefinitionMapper'); diff --git a/src/lib/GraphQL/QueryFieldResolver.php b/src/lib/GraphQL/QueryFieldResolver.php index 4031ac3..423a188 100644 --- a/src/lib/GraphQL/QueryFieldResolver.php +++ b/src/lib/GraphQL/QueryFieldResolver.php @@ -61,5 +61,3 @@ public function resolveQueryFieldDefinitionParameters(array $parameters): array return $return; } } - -class_alias(QueryFieldResolver::class, 'EzSystems\EzPlatformQueryFieldType\GraphQL\QueryFieldResolver'); diff --git a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/QueryConverter.php b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/QueryConverter.php index fea5800..32bd2b7 100644 --- a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/QueryConverter.php +++ b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/QueryConverter.php @@ -99,5 +99,3 @@ public function getIndexColumn() return 'sort_key_string'; } } - -class_alias(QueryConverter::class, 'EzSystems\EzPlatformQueryFieldType\eZ\Persistence\Legacy\Content\FieldValue\Converter\QueryConverter'); diff --git a/src/lib/QueryFieldPaginationService.php b/src/lib/QueryFieldPaginationService.php index 04eaf89..76c9144 100644 --- a/src/lib/QueryFieldPaginationService.php +++ b/src/lib/QueryFieldPaginationService.php @@ -15,5 +15,3 @@ interface QueryFieldPaginationService { } - -class_alias(QueryFieldPaginationService::class, 'EzSystems\EzPlatformQueryFieldType\API\QueryFieldPaginationService'); diff --git a/src/lib/QueryFieldService.php b/src/lib/QueryFieldService.php index f07e11e..87b89ac 100644 --- a/src/lib/QueryFieldService.php +++ b/src/lib/QueryFieldService.php @@ -206,5 +206,3 @@ static function (SearchHit $searchHit): Content { ); } } - -class_alias(QueryFieldService::class, 'EzSystems\EzPlatformQueryFieldType\API\QueryFieldService');