Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8139: Dropped class_alias BC layer statements from all classes #47

Merged
merged 2 commits into from
Jun 5, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"autoload": {
"psr-4": {
"Ibexa\\FieldTypeMatrix\\": "src/lib/",
"Ibexa\\Bundle\\FieldTypeMatrix\\": "src/bundle/",
"EzSystems\\EzPlatformMatrixFieldtypeBundle\\": "src/bundle/",
"EzSystems\\EzPlatformMatrixFieldtype\\": "src/lib/"
"Ibexa\\Bundle\\FieldTypeMatrix\\": "src/bundle/"
}
},
"autoload-dev": {
Expand Down
2 changes: 0 additions & 2 deletions src/bundle/Command/MigrateLegacyMatrixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,3 @@ public function getDeprecatedAliases(): array
return ['ezplatform:migrate:legacy_matrix'];
}
}

class_alias(MigrateLegacyMatrixCommand::class, 'EzSystems\EzPlatformMatrixFieldtypeBundle\Command\MigrateLegacyMatrixCommand');
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,3 @@ private function prependGraphQL(ContainerBuilder $container)
]);
}
}

class_alias(IbexaFieldTypeMatrixExtension::class, 'EzSystems\EzPlatformMatrixFieldtypeBundle\DependencyInjection\EzPlatformMatrixFieldtypeExtension');
2 changes: 0 additions & 2 deletions src/bundle/IbexaFieldTypeMatrixBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@
class IbexaFieldTypeMatrixBundle extends Bundle
{
}

class_alias(IbexaFieldTypeMatrixBundle::class, 'EzSystems\EzPlatformMatrixFieldtypeBundle\EzPlatformMatrixFieldtypeBundle');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Converter/MatrixConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ public function getIndexColumn()
return false;
}
}

class_alias(MatrixConverter::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Converter\MatrixConverter');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ public function getDefaultSortField(): ?string
return null;
}
}

class_alias(Indexable::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Indexable');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Mapper/MatrixFormMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data): vo
);
}
}

class_alias(MatrixFormMapper::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Mapper\MatrixFormMapper');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,3 @@ public function isSearchable(): bool
return true;
}
}

class_alias(Type::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Type');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ public function __toString(): string
return '';
}
}

class_alias(Value::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Value');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Value/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ public function __isset($name): bool
return isset($this->cells[$name]);
}
}

class_alias(Row::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\Row');
2 changes: 0 additions & 2 deletions src/lib/FieldType/Value/RowsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ public function offsetSet($offset, $value): void
parent::offsetSet($offset, $value);
}
}

class_alias(RowsCollection::class, 'EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\RowsCollection');
2 changes: 0 additions & 2 deletions src/lib/Form/Transformer/FieldTypeModelTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,3 @@ public function reverseTransform($value)
return new Value($rows ?? []);
}
}

class_alias(FieldTypeModelTransformer::class, 'EzSystems\EzPlatformMatrixFieldtype\Form\Transformer\FieldTypeModelTransformer');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/ColumnType.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ public function configureOptions(OptionsResolver $resolver): void
$resolver->setDefault('translation_domain', 'ibexa_matrix_fieldtype');
}
}

class_alias(ColumnType::class, 'EzSystems\EzPlatformMatrixFieldtype\Form\Type\ColumnType');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/FieldType/MatrixCollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,3 @@ public function getParent(): string
return CollectionType::class;
}
}

class_alias(MatrixCollectionType::class, 'EzSystems\EzPlatformMatrixFieldtype\Form\Type\FieldType\MatrixCollectionType');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/FieldType/MatrixEntryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
parent::buildForm($builder, $options);
}
}

class_alias(MatrixEntryType::class, 'EzSystems\EzPlatformMatrixFieldtype\Form\Type\FieldType\MatrixEntryType');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/FieldType/MatrixFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,3 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
$builder->addModelTransformer(new FieldTypeModelTransformer());
}
}

class_alias(MatrixFieldType::class, 'EzSystems\EzPlatformMatrixFieldtype\Form\Type\FieldType\MatrixFieldType');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/FieldValueResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ public function resolveMatrixFieldValue(object $item, string $fieldDefIdentifier
return new RowsCollection($silentRows);
}
}

class_alias(FieldValueResolver::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\FieldValueResolver');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/InputHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ static function (array $row) {
);
}
}

class_alias(InputHandler::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\InputHandler');
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ private function typeName(array $args)
return $this->nameHelper->matrixFieldDefinitionInputType($args['ContentType'], $args['FieldDefinition']);
}
}

class_alias(MatrixFieldDefinitionInputSchemaWorker::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\Schema\MatrixFieldDefinitionInputSchemaWorker');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/Schema/MatrixFieldDefinitionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,3 @@ public function mapToFieldValueResolver(FieldDefinition $fieldDefinition): ?stri
);
}
}

class_alias(MatrixFieldDefinitionMapper::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\Schema\MatrixFieldDefinitionMapper');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/Schema/MatrixFieldDefinitionSchemaWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ private function typeName(array $args)
return $this->nameHelper->matrixFieldDefinitionType($args['ContentType'], $args['FieldDefinition']);
}
}

class_alias(MatrixFieldDefinitionSchemaWorker::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\Schema\MatrixFieldDefinitionSchemaWorker');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/Schema/NameHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ public function matrixFieldDefinitionInputType(ContentType $contentType, FieldDe
);
}
}

class_alias(NameHelper::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\Schema\NameHelper');
2 changes: 0 additions & 2 deletions src/lib/GraphQL/SilentRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ public function __get($name)
return $this->cells[$name] ?? '';
}
}

class_alias(SilentRow::class, 'EzSystems\EzPlatformMatrixFieldtype\GraphQL\SilentRow');
Loading