Skip to content

Commit

Permalink
IBX-8139: Dropped class_alias BC layer statements from all classes (#66)
Browse files Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-8139 and #66

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
  • Loading branch information
alongosz authored Jun 5, 2024
1 parent 8b07f5e commit 4fb3e4a
Show file tree
Hide file tree
Showing 168 changed files with 1 addition and 324 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
"psr-4": {
"Ibexa\\GraphQL\\": "src/lib/",
"Ibexa\\Bundle\\GraphQL\\": "src/bundle/",
"Ibexa\\Contracts\\GraphQL\\": "src/contracts/",
"EzSystems\\EzPlatformGraphQL\\": "src/lib/"
"Ibexa\\Contracts\\GraphQL\\": "src/contracts/"
}
},
"autoload-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ class YamlSchemaProviderSpec extends ObjectBehavior
// $this->vfs->addChild(vfsStream::newFile($file));
// }
}
class_alias(YamlSchemaProviderSpec::class, 'spec\EzSystems\EzPlatformGraphQL\DependencyInjection\GraphQL\YamlSchemaProviderSpec');
2 changes: 0 additions & 2 deletions spec/InputMapper/SearchQueryMapperSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,3 @@ private function findCriterionInCriterion(Query\Criterion\LogicalOperator $logic
return null;
}
}

class_alias(SearchQueryMapperSpec::class, 'spec\EzSystems\EzPlatformGraphQL\GraphQL\InputMapper\SearchQueryMapperSpec');
2 changes: 0 additions & 2 deletions spec/Resolver/DomainContentResolverSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,3 @@ private function createContent($contentId): Content
]);
}
}

class_alias(DomainContentResolverSpec::class, 'spec\EzSystems\EzPlatformGraphQL\GraphQL\Resolver\DomainContentResolverSpec');
2 changes: 0 additions & 2 deletions spec/Resolver/LocationGuesser/FilterLocationGuesserSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,3 @@ public function getMatchers(): array
];
}
}

class_alias(FilterLocationGuesserSpec::class, 'spec\EzSystems\EzPlatformGraphQL\GraphQL\Resolver\LocationGuesser\FilterLocationGuesserSpec');
2 changes: 0 additions & 2 deletions spec/Schema/Builder/SchemaBuilderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,3 @@ protected function inputArg($description): Input\Arg
return $input;
}
}

class_alias(SchemaBuilderSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Builder\SchemaBuilderSpec');
2 changes: 0 additions & 2 deletions spec/Schema/Domain/Content/ContentDomainIteratorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,3 @@ public function it_only_yields_fields_definitions_from_the_current_content_type(
);
}
}

class_alias(ContentDomainIteratorSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\ContentDomainIteratorSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ protected function createUnconfiguredFieldDefinition(): FieldDefinition
]);
}
}

class_alias(ConfigurableFieldDefinitionMapperSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Mapper\FieldDefinition\ConfigurableFieldDefinitionMapperSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ private function createFieldDefinition($selectionLimit = 0, $selectionContentTyp
]);
}
}

class_alias(RelationFieldDefinitionMapperSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Mapper\FieldDefinition\RelationFieldDefinitionMapperSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ private function createFieldDefinition($options)
]);
}
}

class_alias(SelectionFieldDefinitionMapperSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Mapper\FieldDefinition\SelectionFieldDefinitionMapperSpec');
2 changes: 0 additions & 2 deletions spec/Schema/Domain/Content/NameHelperSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ public function it_removes_field_type_identifier_colisions(): void
$this->fieldDefinitionField($fieldDefinition)->shouldBe('id_');
}
}

class_alias(NameHelperSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\NameHelperSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ function it_adds_a_collection_field_for_the_ContentType_to_the_ContentTypeGroup(
$this->work($schema, $this->args());
}
}

class_alias(AddItemOfTypeConnectionToGroupSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\AddItemOfTypeConnectionToGroupSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ function it_is_initializable()
$this->shouldHaveType(AddItemToGroup::class);
}
}

class_alias(AddItemToGroupSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\AddItemToGroupSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ function it_adds_a_field_for_the_ContentType_to_the_DomainGroupTypes_object(Sche
$this->work($schema, $this->args());
}
}

class_alias(AddItemTypeToItemGroupTypesSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\AddItemTypeToItemGroupTypesSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ function it_adds_a_field_for_the_ContentType_to_the_ContentTypeIdentifier_enum(S
$this->work($schema, $this->args());
}
}

class_alias(AddItemTypeToItemTypeIdentifierListSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\AddItemTypeToItemTypeIdentifierListSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ protected function args(): array
];
}
}
class_alias(ContentTypeWorkerBehavior::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\ContentTypeWorkerBehavior');
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ function it_defines_a_DomainContent_type_based_on_the_ContentType(SchemaBuilder
$this->work($schema, $this->args());
}
}

class_alias(DefineItemSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\DefineItemSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ function it_defines_a_DomainContent_type_based_on_the_ContentType(SchemaBuilder
$this->work($schema, $this->args());
}
}

class_alias(DefineItemTypeSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentType\DefineItemTypeSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ function it_adds_a_field_for_the_group_to_the_Domain_object(
$this->work($schema, $this->args());
}
}

class_alias(AddDomainGroupToDomainSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentTypeGroup\AddDomainGroupToDomainSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ protected function args(): array
}

}
class_alias(ContentTypeGroupWorkerBehavior::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentTypeGroup\ContentTypeGroupWorkerBehavior');
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ function it_defines_the_DomainGroup_object(
$this->work($schema, $this->args());
}
}

class_alias(DefineDomainGroupSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentTypeGroup\DefineDomainGroupSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ function it_defines_the_DomainGroupTypes_object(
$this->work($schema, $this->args());
}
}

class_alias(DefineDomainGroupTypesSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\ContentTypeGroup\DefineDomainGroupTypesSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ private function buildFieldDefinition($fieldTypeIdentifier)
]);
}
}

class_alias(AddFieldDefinitionToItemTypeSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\FieldDefinition\AddFieldDefinitionToItemTypeSpec');
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ private function buildArguments($fieldTypeIdentifier = self::FIELDTYPE_IDENTIFIE
];
}
}

class_alias(AddFieldValueToItemSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Worker\FieldDefinition\AddFieldValueToItemSpec');
1 change: 0 additions & 1 deletion spec/Schema/Domain/NameValidatorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ function it_validates_names()
}
}

class_alias(NameValidatorSpec::class, 'spec\spec\Ibexa\GraphQL\Schema\Domain\NameHelperSpec');
2 changes: 0 additions & 2 deletions spec/Schema/GeneratorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,3 @@ function it_calls_init_on_schema_initializer_workers(
$this->generate();
}
}

class_alias(GeneratorSpec::class, 'spec\EzSystems\EzPlatformGraphQL\Schema\GeneratorSpec');
1 change: 0 additions & 1 deletion spec/Tools/ContentTypeArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ function ($argument) use ($identifier) {
);
}
}
class_alias(ContentTypeArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\ContentTypeArgument');
1 change: 0 additions & 1 deletion spec/Tools/ContentTypeGroupArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ function ($argument) use ($identifier) {
);
}
}
class_alias(ContentTypeGroupArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\ContentTypeGroupArgument');
1 change: 0 additions & 1 deletion spec/Tools/EnumValueArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ function (Input\EnumValue $input) use($value) {
);
}
}
class_alias(EnumValueArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\EnumValueArgument');
1 change: 0 additions & 1 deletion spec/Tools/FieldArgArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ function(Input\Arg $arg) use ($property, $value) {
);
}
}
class_alias(FieldArgArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\FieldArgArgument');
2 changes: 0 additions & 2 deletions spec/Tools/FieldArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ function(Input\Field $field) use ($property, $value) {
);
}
}

class_alias(FieldArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\FieldArgument');
1 change: 0 additions & 1 deletion spec/Tools/SchemaArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ function ($schema) {
);
}
}
class_alias(SchemaArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\SchemaArgument');
1 change: 0 additions & 1 deletion spec/Tools/Stubs/InitializableWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ interface InitializableWorker extends Schema\Worker, Schema\Initializer
{

}
class_alias(InitializableWorker::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\Stubs\InitializableWorker');
1 change: 0 additions & 1 deletion spec/Tools/TypeArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ function (Input\Type $type) use($expectedType) {
);
}
}
class_alias(TypeArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\TypeArgument');
1 change: 0 additions & 1 deletion spec/Tools/WorkerArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ function ($args) use ($argumentName, $value) {
);
}
}
class_alias(WorkerArgument::class, 'spec\EzSystems\EzPlatformGraphQL\Tools\WorkerArgument');
2 changes: 0 additions & 2 deletions src/bundle/Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,3 @@ public function getDeprecatedAliases(): array
return ['ezplatform:graphql:generate-schema'];
}
}

class_alias(GeneratePlatformSchemaCommand::class, 'EzSystems\EzPlatformGraphQL\Command\GeneratePlatformSchemaCommand');
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public function process(ContainerBuilder $container)
$container->findDefinition(DomainContentMutationResolver::class)->setArgument('$fieldInputHandlers', $handlers);
}
}

class_alias(FieldInputHandlersPass::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\Compiler\FieldInputHandlersPass');
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ public function process(ContainerBuilder $container)
$definition->setArgument('$inputConverters', $handlers);
}
}

class_alias(RichTextInputConvertersPass::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\Compiler\RichTextInputConvertersPass');
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ public function process(ContainerBuilder $container)
$container->setDefinition(Generator::class, $generatorDefinition);
}
}

class_alias(SchemaDomainIteratorsPass::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\Compiler\SchemaDomainIteratorsPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/SchemaWorkersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ public function process(ContainerBuilder $container)
$container->setDefinition(Generator::class, $generatorDefinition);
}
}

class_alias(SchemaWorkersPass::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\Compiler\SchemaWorkersPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ public function getConfigTreeBuilder()
return new TreeBuilder(IbexaGraphQLExtension::EXTENSION_NAME);
}
}

class_alias(Configuration::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\Configuration');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/GraphQL/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ interface SchemaProvider
*/
public function getSchemaConfiguration();
}

class_alias(SchemaProvider::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\GraphQL\SchemaProvider');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/GraphQL/YamlSchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ private function getPlatformMutationSchema()
return $this->root . self::DXP_MUTATION_FILE;
}
}

class_alias(YamlSchemaProvider::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\GraphQL\YamlSchemaProvider');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/IbexaGraphQLExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ private function setContainerParameters(ContainerBuilder $container): void
$container->setParameter('ibexa.graphql.package.root_dir', $packageRootDir);
}
}

class_alias(IbexaGraphQLExtension::class, 'EzSystems\EzPlatformGraphQL\DependencyInjection\EzSystemsEzPlatformGraphQLExtension');
2 changes: 0 additions & 2 deletions src/bundle/IbexaGraphQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ public function getContainerExtension()
return new IbexaGraphQLExtension();
}
}

class_alias(IbexaGraphQLBundle::class, 'EzSystems\EzPlatformGraphQL\EzSystemsEzPlatformGraphQLBundle');
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ interface RichTextInputConverter
{
public function convertToXml($text): \DOMDocument;
}

class_alias(RichTextInputConverter::class, 'EzSystems\EzPlatformGraphQL\GraphQL\Mutation\InputHandler\FieldType\RichText\RichTextInputConverter');
2 changes: 0 additions & 2 deletions src/contracts/Mutation/InputHandler/FieldTypeInputHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ interface FieldTypeInputHandler
{
public function toFieldValue($input, $inputFormat = null): Value;
}

class_alias(FieldTypeInputHandler::class, 'EzSystems\EzPlatformGraphQL\GraphQL\Mutation\InputHandler\FieldTypeInputHandler');
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ public function mapToFieldValueResolver(FieldDefinition $fieldDefinition): ?stri
*/
public function mapToFieldValueArgsBuilder(FieldDefinition $fieldDefinition): ?string;
}

class_alias(FieldDefinitionMapper::class, 'EzSystems\EzPlatformGraphQL\Schema\Domain\Content\Mapper\FieldDefinition\FieldDefinitionMapper');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/CachedContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ public function count(Query $query)
return $this->innerLoader->count($query);
}
}

class_alias(CachedContentLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\CachedContentLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/CachedContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function loadByIdentifier($identifier): ContentType
return $contentType;
}
}

class_alias(CachedContentTypeLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\CachedContentTypeLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/ContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ public function findSingle(Criterion $criterion): Content;
*/
public function count(Query $query);
}

class_alias(ContentLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\ContentLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/ContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ public function load($contentTypeId): ContentType;

public function loadByIdentifier($identifier): ContentType;
}

class_alias(ContentTypeLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\ContentTypeLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/Exception/ArgumentsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
class ArgumentsException extends Exception
{
}

class_alias(ArgumentsException::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\Exception\ArgumentsException');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
class NotFoundException extends NotFoundApiException
{
}

class_alias(NotFoundException::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\Exception\NotFoundException');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/LocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function findByUrlAlias(string $urlAlias): Location;
*/
public function count(LocationQuery $query);
}

class_alias(LocationLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\LocationLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/RepositoryContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ public function loadByIdentifier($identifier): ContentType
return $this->contentTypeService->loadContentTypeByIdentifier($identifier);
}
}

class_alias(RepositoryContentTypeLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\RepositoryContentTypeLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/SearchContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ public function count(Query $query)
}
}
}

class_alias(SearchContentLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\SearchContentLoader');
2 changes: 0 additions & 2 deletions src/lib/DataLoader/SearchLocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ protected function getUrlAlias($pathinfo): URLAlias
return $this->urlAliasService->lookup($urlAlias);
}
}

class_alias(SearchLocationLoader::class, 'EzSystems\EzPlatformGraphQL\GraphQL\DataLoader\SearchLocationLoader');
2 changes: 0 additions & 2 deletions src/lib/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@
class LogicException extends \LogicException
{
}

class_alias(LogicException::class, 'EzSystems\EzPlatformGraphQL\Exception\LogicException');
2 changes: 0 additions & 2 deletions src/lib/Exception/MultipleValidLocationsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ public function getContent(): Content
return $this->content;
}
}

class_alias(MultipleValidLocationsException::class, 'EzSystems\EzPlatformGraphQL\Exception\MultipleValidLocationsException');
2 changes: 0 additions & 2 deletions src/lib/Exception/NoValidLocationsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function getContent(): Content
return $this->content;
}
}

class_alias(NoValidLocationsException::class, 'EzSystems\EzPlatformGraphQL\Exception\NoValidLocationsException');
2 changes: 0 additions & 2 deletions src/lib/Exception/NoValidSiteaccessException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ public function __construct(Location $location)
$this->location = $location;
}
}

class_alias(NoValidSiteaccessException::class, 'EzSystems\EzPlatformGraphQL\Exception\NoValidSiteaccessException');
2 changes: 0 additions & 2 deletions src/lib/Exception/UnsupportedFieldInputFormatException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ public function __construct($fieldType, $format)
parent::__construct("Unsupported $fieldType input format $format");
}
}

class_alias(UnsupportedFieldInputFormatException::class, 'EzSystems\EzPlatformGraphQL\Exception\UnsupportedFieldInputFormatException');
2 changes: 0 additions & 2 deletions src/lib/Exception/UnsupportedFieldTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ public function __construct($fieldType, $operation)
);
}
}

class_alias(UnsupportedFieldTypeException::class, 'EzSystems\EzPlatformGraphQL\Exception\UnsupportedFieldTypeException');
2 changes: 0 additions & 2 deletions src/lib/InputMapper/ContentCollectionFilterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ public function buildFilter(): Criterion
return new Subtree($includedSubtrees);
}
}

class_alias(ContentCollectionFilterBuilder::class, 'EzSystems\EzPlatformGraphQL\GraphQL\InputMapper\ContentCollectionFilterBuilder');
2 changes: 0 additions & 2 deletions src/lib/InputMapper/QueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ public function mapInputToLocationQuery(array $inputArray): LocationQuery;

public function mapInputToQuery(array $inputArray): Query;
}

class_alias(QueryMapper::class, 'EzSystems\EzPlatformGraphQL\GraphQL\InputMapper\QueryMapper');
2 changes: 0 additions & 2 deletions src/lib/InputMapper/SearchQueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,3 @@ private function mapInputToFieldCriterion($input)
return new Query\Criterion\Field($input['target'], $operator, $value);
}
}

class_alias(SearchQueryMapper::class, 'EzSystems\EzPlatformGraphQL\GraphQL\InputMapper\SearchQueryMapper');
2 changes: 0 additions & 2 deletions src/lib/InputMapper/SearchQuerySortByMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ static function (string $sortClauseClass) {
return array_filter($sortClauses);
}
}

class_alias(SearchQuerySortByMapper::class, 'EzSystems\EzPlatformGraphQL\GraphQL\InputMapper\SearchQuerySortByMapper');
Loading

0 comments on commit 4fb3e4a

Please sign in to comment.