From ddc118ff3dd27067ac2c6675eb13f66f76cb3e3f Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 5 Jun 2024 22:23:55 +0200 Subject: [PATCH] IBX-8139: Dropped class_alias BC layer statements from all classes (#161) For more details see https://issues.ibexa.co/browse/IBX-8139 and https://github.com/ibexa/fieldtype-richtext/pull/161 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.json | 4 +--- .../Compiler/RichTextHtml5ConverterPass.php | 2 -- src/bundle/DependencyInjection/Configuration.php | 2 -- .../Configuration/Parser/FieldType/RichText.php | 2 -- .../DependencyInjection/IbexaFieldTypeRichTextExtension.php | 2 -- src/bundle/IbexaFieldTypeRichTextBundle.php | 2 -- .../Twig/Extension/RichTextConfigurationExtension.php | 2 -- .../Templating/Twig/Extension/RichTextConverterExtension.php | 2 -- .../Templating/Twig/Extension/YoutubeIdExtractorExtension.php | 2 -- src/contracts/Configuration/Provider.php | 2 -- src/contracts/Configuration/ProviderService.php | 2 -- src/contracts/RichText/Converter.php | 2 -- src/contracts/RichText/InputHandlerInterface.php | 2 -- src/contracts/RichText/RendererInterface.php | 2 -- src/contracts/RichText/ValidatorInterface.php | 2 -- src/lib/Configuration/AggregateProvider.php | 2 -- src/lib/Configuration/Provider/AlloyEditor.php | 2 -- src/lib/Configuration/Provider/CKEditor.php | 2 -- src/lib/Configuration/Provider/CustomStyle.php | 2 -- src/lib/Configuration/Provider/CustomTag.php | 2 -- src/lib/Configuration/UI/Mapper/CustomStyle.php | 2 -- src/lib/Configuration/UI/Mapper/CustomTag.php | 2 -- src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php | 2 -- .../UI/Mapper/CustomTag/ChoiceAttributeMapper.php | 2 -- .../UI/Mapper/CustomTag/CommonAttributeMapper.php | 2 -- .../Configuration/UI/Mapper/CustomTemplateConfigMapper.php | 2 -- src/lib/Configuration/UI/Mapper/OnlineEditor.php | 2 -- src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php | 2 -- src/lib/FieldType/RichText/RichTextStorage.php | 2 -- src/lib/FieldType/RichText/RichTextStorage/Gateway.php | 2 -- .../RichText/RichTextStorage/Gateway/DoctrineStorage.php | 2 -- src/lib/FieldType/RichText/SearchField.php | 2 -- src/lib/FieldType/RichText/Type.php | 2 -- src/lib/FieldType/RichText/Value.php | 2 -- src/lib/Form/DataTransformer/RichTextTransformer.php | 2 -- src/lib/Form/DataTransformer/RichTextValueTransformer.php | 2 -- src/lib/Form/Mapper/RichTextFormMapper.php | 2 -- src/lib/Form/Type/RichTextFieldType.php | 2 -- src/lib/Form/Type/RichTextType.php | 2 -- src/lib/Persistence/Legacy/RichTextFieldValueConverter.php | 2 -- src/lib/REST/FieldTypeProcessor/RichTextProcessor.php | 2 -- src/lib/RichText/Converter/Aggregate.php | 2 -- src/lib/RichText/Converter/Html5.php | 2 -- src/lib/RichText/Converter/Html5Edit.php | 2 -- src/lib/RichText/Converter/Html5Input.php | 2 -- src/lib/RichText/Converter/Link.php | 2 -- src/lib/RichText/Converter/ProgramListing.php | 2 -- src/lib/RichText/Converter/Render.php | 2 -- src/lib/RichText/Converter/Render/Embed.php | 2 -- src/lib/RichText/Converter/Render/Template.php | 2 -- src/lib/RichText/Converter/Xslt.php | 2 -- src/lib/RichText/ConverterDispatcher.php | 2 -- src/lib/RichText/DOMDocumentFactory.php | 2 -- src/lib/RichText/Exception/InvalidXmlException.php | 2 -- src/lib/RichText/InputHandler.php | 2 -- src/lib/RichText/Normalizer.php | 2 -- src/lib/RichText/Normalizer/Aggregate.php | 2 -- src/lib/RichText/Normalizer/DocumentTypeDefinition.php | 2 -- src/lib/RichText/RelationProcessor.php | 2 -- src/lib/RichText/Renderer.php | 2 -- src/lib/RichText/Validator/CustomTagsValidator.php | 2 -- src/lib/RichText/Validator/InternalLinkValidator.php | 2 -- src/lib/RichText/Validator/Validator.php | 2 -- src/lib/RichText/Validator/ValidatorAggregate.php | 2 -- src/lib/RichText/Validator/ValidatorDispatcher.php | 2 -- src/lib/RichText/XmlBase.php | 2 -- .../Extractor/OnlineEditorCustomAttributesExtractor.php | 2 -- src/lib/Validator/Constraints/RichText.php | 2 -- src/lib/Validator/Constraints/RichTextValidator.php | 2 -- .../Compiler/RichTextHtml5ConverterPassTest.php | 2 -- .../DependencyInjection/Configuration/ConfigurationTest.php | 2 -- .../Configuration/Parser/FieldType/RichTextTest.php | 2 -- .../IbexaFieldTypeRichTextExtensionTest.php | 2 -- .../Twig/Extension/YoutubeIdExtractorExtensionTest.php | 2 -- tests/lib/Configuration/AggregateProviderTest.php | 2 -- tests/lib/Configuration/Provider/AlloyEditorTest.php | 2 -- .../Provider/BaseCustomTemplateProviderTestCase.php | 2 -- tests/lib/Configuration/Provider/BaseProviderTestCase.php | 2 -- tests/lib/Configuration/Provider/CKEditorTest.php | 2 -- tests/lib/Configuration/Provider/CustomStyleProviderTest.php | 2 -- tests/lib/Configuration/Provider/CustomTagProviderTest.php | 2 -- tests/lib/Configuration/UI/Config/Mapper/CustomTagTest.php | 2 -- tests/lib/Configuration/UI/Config/Mapper/OnlineEditorTest.php | 2 -- tests/lib/FieldType/RichText/Gateway/DoctrineStorageTest.php | 2 -- tests/lib/FieldType/RichText/RichTextStorageTest.php | 2 -- tests/lib/FieldType/RichText/SearchFieldTest.php | 2 -- tests/lib/FieldType/RichTextTest.php | 2 -- tests/lib/Form/DataTransformer/RichTextTransformerTest.php | 2 -- .../FieldValue/Converter/RichTextFieldValueConverterTest.php | 2 -- tests/lib/REST/FieldTypeProcessor/RichTextProcessorTest.php | 2 -- tests/lib/RichText/Converter/AggregateTest.php | 2 -- tests/lib/RichText/Converter/LinkTest.php | 2 -- tests/lib/RichText/Converter/Render/EmbedTest.php | 2 -- tests/lib/RichText/Converter/Render/TemplateTest.php | 2 -- tests/lib/RichText/Converter/Xslt/BaseTest.php | 2 -- tests/lib/RichText/Converter/Xslt/DebugRenderer.php | 2 -- tests/lib/RichText/Converter/Xslt/DocbookToXhtml5EditTest.php | 2 -- .../lib/RichText/Converter/Xslt/DocbookToXhtml5OutputTest.php | 2 -- tests/lib/RichText/Converter/Xslt/Xhtml5ToDocbookTest.php | 2 -- tests/lib/RichText/DOMDocumentFactoryTest.php | 2 -- tests/lib/RichText/InputHandlerTest.php | 2 -- tests/lib/RichText/Normalizer/DocumentTypeDefinitionTest.php | 2 -- tests/lib/RichText/RelationProcessorTest.php | 2 -- tests/lib/RichText/RendererTest.php | 2 -- tests/lib/RichText/Validator/CustomTagsValidatorTest.php | 2 -- tests/lib/RichText/Validator/DocbookTest.php | 2 -- tests/lib/RichText/Validator/InternalLinkValidatorTest.php | 2 -- tests/lib/RichText/Validator/ValidatorAggregateTest.php | 2 -- tests/lib/Validator/Constraints/RichTextValidatorTest.php | 2 -- 109 files changed, 1 insertion(+), 219 deletions(-) diff --git a/composer.json b/composer.json index 94feba5a..aa7b263d 100644 --- a/composer.json +++ b/composer.json @@ -57,9 +57,7 @@ "Ibexa\\FieldTypeRichText\\": "src/lib/", "Ibexa\\Contracts\\FieldTypeRichText\\": "src/contracts/", "Ibexa\\Bundle\\FieldTypeRichText\\": "src/bundle/", - "Ibexa\\Tests\\FieldTypeRichText\\": "tests/lib/", - "EzSystems\\EzPlatformRichTextBundle\\": "src/bundle", - "EzSystems\\EzPlatformRichText\\": "src/lib" + "Ibexa\\Tests\\FieldTypeRichText\\": "tests/lib/" } }, "autoload-dev": { diff --git a/src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php b/src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php index 756310b4..552f1ce7 100644 --- a/src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php +++ b/src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php @@ -75,5 +75,3 @@ protected function sortConverters(array $convertersByPriority) return array_merge(...$convertersByPriority); } } - -class_alias(RichTextHtml5ConverterPass::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Compiler\RichTextHtml5ConverterPass'); diff --git a/src/bundle/DependencyInjection/Configuration.php b/src/bundle/DependencyInjection/Configuration.php index a19b819d..584b18bc 100644 --- a/src/bundle/DependencyInjection/Configuration.php +++ b/src/bundle/DependencyInjection/Configuration.php @@ -214,5 +214,3 @@ private function addAlloyEditorSection(NodeBuilder $ezRichTextNode) ; } } - -class_alias(Configuration::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Configuration'); diff --git a/src/bundle/DependencyInjection/Configuration/Parser/FieldType/RichText.php b/src/bundle/DependencyInjection/Configuration/Parser/FieldType/RichText.php index 801bb3a7..01b21cb5 100644 --- a/src/bundle/DependencyInjection/Configuration/Parser/FieldType/RichText.php +++ b/src/bundle/DependencyInjection/Configuration/Parser/FieldType/RichText.php @@ -425,5 +425,3 @@ private function getAttributesValidatorCallback(callable $invalidChoiceCallback) }; } } - -class_alias(RichText::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Configuration\Parser\FieldType\RichText'); diff --git a/src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php b/src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php index 0da004ce..da5043b6 100644 --- a/src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php +++ b/src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php @@ -309,5 +309,3 @@ private function checkForInlineTagsInToolbar( } } } - -class_alias(IbexaFieldTypeRichTextExtension::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\EzPlatformRichTextExtension'); diff --git a/src/bundle/IbexaFieldTypeRichTextBundle.php b/src/bundle/IbexaFieldTypeRichTextBundle.php index 8c19b69f..821d2625 100644 --- a/src/bundle/IbexaFieldTypeRichTextBundle.php +++ b/src/bundle/IbexaFieldTypeRichTextBundle.php @@ -56,5 +56,3 @@ public function getContainerExtension() return $this->extension; } } - -class_alias(IbexaFieldTypeRichTextBundle::class, 'EzSystems\EzPlatformRichTextBundle\EzPlatformRichTextBundle'); diff --git a/src/bundle/Templating/Twig/Extension/RichTextConfigurationExtension.php b/src/bundle/Templating/Twig/Extension/RichTextConfigurationExtension.php index e85b4013..2a069ccf 100644 --- a/src/bundle/Templating/Twig/Extension/RichTextConfigurationExtension.php +++ b/src/bundle/Templating/Twig/Extension/RichTextConfigurationExtension.php @@ -38,5 +38,3 @@ public function getGlobals(): array ]; } } - -class_alias(RichTextConfigurationExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\RichTextConfigurationExtension'); diff --git a/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php b/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php index b6e98c9f..babe0997 100644 --- a/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php +++ b/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php @@ -73,5 +73,3 @@ public function richTextToHtml5Edit(DOMDocument $xmlData): string return $this->richTextEditConverter->convert($xmlData)->saveHTML() ?: ''; } } - -class_alias(RichTextConverterExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\RichTextConverterExtension'); diff --git a/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php b/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php index 8d288118..23e25248 100644 --- a/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php +++ b/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php @@ -49,5 +49,3 @@ public function extractId(string $string): ?string return $matches['id'] ?? null; } } - -class_alias(YoutubeIdExtractorExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\YoutubeIdExtractorExtension'); diff --git a/src/contracts/Configuration/Provider.php b/src/contracts/Configuration/Provider.php index af113593..51eeda25 100644 --- a/src/contracts/Configuration/Provider.php +++ b/src/contracts/Configuration/Provider.php @@ -29,5 +29,3 @@ public function getName(): string; */ public function getConfiguration(): array; } - -class_alias(Provider::class, 'EzSystems\EzPlatformRichText\SPI\Configuration\Provider'); diff --git a/src/contracts/Configuration/ProviderService.php b/src/contracts/Configuration/ProviderService.php index 2e1bc976..58631be2 100644 --- a/src/contracts/Configuration/ProviderService.php +++ b/src/contracts/Configuration/ProviderService.php @@ -25,5 +25,3 @@ interface ProviderService */ public function getConfiguration(): array; } - -class_alias(ProviderService::class, 'EzSystems\EzPlatformRichText\API\Configuration\ProviderService'); diff --git a/src/contracts/RichText/Converter.php b/src/contracts/RichText/Converter.php index 124a9a1d..0c0001db 100644 --- a/src/contracts/RichText/Converter.php +++ b/src/contracts/RichText/Converter.php @@ -24,5 +24,3 @@ interface Converter */ public function convert(DOMDocument $xmlDoc); } - -class_alias(Converter::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter'); diff --git a/src/contracts/RichText/InputHandlerInterface.php b/src/contracts/RichText/InputHandlerInterface.php index 62bafc00..80f4ea36 100644 --- a/src/contracts/RichText/InputHandlerInterface.php +++ b/src/contracts/RichText/InputHandlerInterface.php @@ -55,5 +55,3 @@ public function getRelations(DOMDocument $document): array; */ public function validate(DOMDocument $document): array; } - -class_alias(InputHandlerInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\InputHandlerInterface'); diff --git a/src/contracts/RichText/RendererInterface.php b/src/contracts/RichText/RendererInterface.php index 2017534d..7fc9e67d 100644 --- a/src/contracts/RichText/RendererInterface.php +++ b/src/contracts/RichText/RendererInterface.php @@ -49,5 +49,3 @@ public function renderContentEmbed($contentId, $viewType, array $parameters, $is */ public function renderLocationEmbed($locationId, $viewType, array $parameters, $isInline); } - -class_alias(RendererInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\RendererInterface'); diff --git a/src/contracts/RichText/ValidatorInterface.php b/src/contracts/RichText/ValidatorInterface.php index 56eec527..0a0f18f2 100644 --- a/src/contracts/RichText/ValidatorInterface.php +++ b/src/contracts/RichText/ValidatorInterface.php @@ -21,5 +21,3 @@ interface ValidatorInterface */ public function validateDocument(DOMDocument $xmlDocument): array; } - -class_alias(ValidatorInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\ValidatorInterface'); diff --git a/src/lib/Configuration/AggregateProvider.php b/src/lib/Configuration/AggregateProvider.php index 0abb57d6..f0b271f0 100644 --- a/src/lib/Configuration/AggregateProvider.php +++ b/src/lib/Configuration/AggregateProvider.php @@ -38,5 +38,3 @@ public function getConfiguration(): array return $configuration; } } - -class_alias(AggregateProvider::class, 'EzSystems\EzPlatformRichText\Configuration\AggregateProvider'); diff --git a/src/lib/Configuration/Provider/AlloyEditor.php b/src/lib/Configuration/Provider/AlloyEditor.php index d9b2bba5..b2e45ccd 100644 --- a/src/lib/Configuration/Provider/AlloyEditor.php +++ b/src/lib/Configuration/Provider/AlloyEditor.php @@ -145,5 +145,3 @@ private function getSiteAccessConfigArray(string $paramName): array : []; } } - -class_alias(AlloyEditor::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\AlloyEditor'); diff --git a/src/lib/Configuration/Provider/CKEditor.php b/src/lib/Configuration/Provider/CKEditor.php index d7382b22..6b759cb0 100644 --- a/src/lib/Configuration/Provider/CKEditor.php +++ b/src/lib/Configuration/Provider/CKEditor.php @@ -164,5 +164,3 @@ private function getSiteAccessConfigArray(string $paramName): array : []; } } - -class_alias(CKEditor::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CKEditor'); diff --git a/src/lib/Configuration/Provider/CustomStyle.php b/src/lib/Configuration/Provider/CustomStyle.php index d3707b42..f99badf9 100644 --- a/src/lib/Configuration/Provider/CustomStyle.php +++ b/src/lib/Configuration/Provider/CustomStyle.php @@ -52,5 +52,3 @@ public function getConfiguration(): array return []; } } - -class_alias(CustomStyle::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CustomStyle'); diff --git a/src/lib/Configuration/Provider/CustomTag.php b/src/lib/Configuration/Provider/CustomTag.php index 0962ce0d..2c8bcf85 100644 --- a/src/lib/Configuration/Provider/CustomTag.php +++ b/src/lib/Configuration/Provider/CustomTag.php @@ -52,5 +52,3 @@ public function getConfiguration(): array return []; } } - -class_alias(CustomTag::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CustomTag'); diff --git a/src/lib/Configuration/UI/Mapper/CustomStyle.php b/src/lib/Configuration/UI/Mapper/CustomStyle.php index 53861874..04799a32 100644 --- a/src/lib/Configuration/UI/Mapper/CustomStyle.php +++ b/src/lib/Configuration/UI/Mapper/CustomStyle.php @@ -73,5 +73,3 @@ public function mapConfig(array $enabledCustomStyles): array return $config; } } - -class_alias(CustomStyle::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomStyle'); diff --git a/src/lib/Configuration/UI/Mapper/CustomTag.php b/src/lib/Configuration/UI/Mapper/CustomTag.php index a9dcec69..373bad8a 100644 --- a/src/lib/Configuration/UI/Mapper/CustomTag.php +++ b/src/lib/Configuration/UI/Mapper/CustomTag.php @@ -208,5 +208,3 @@ private function translateLabels(array $config): array return $config; } } - -class_alias(CustomTag::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag'); diff --git a/src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php b/src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php index 17060bad..42fb3a3f 100644 --- a/src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php +++ b/src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php @@ -39,5 +39,3 @@ public function mapConfig( array $customTagAttributeProperties ): array; } - -class_alias(AttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\AttributeMapper'); diff --git a/src/lib/Configuration/UI/Mapper/CustomTag/ChoiceAttributeMapper.php b/src/lib/Configuration/UI/Mapper/CustomTag/ChoiceAttributeMapper.php index 48ac6ad4..832379b1 100644 --- a/src/lib/Configuration/UI/Mapper/CustomTag/ChoiceAttributeMapper.php +++ b/src/lib/Configuration/UI/Mapper/CustomTag/ChoiceAttributeMapper.php @@ -40,5 +40,3 @@ public function mapConfig( return $parentConfig; } } - -class_alias(ChoiceAttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\ChoiceAttributeMapper'); diff --git a/src/lib/Configuration/UI/Mapper/CustomTag/CommonAttributeMapper.php b/src/lib/Configuration/UI/Mapper/CustomTag/CommonAttributeMapper.php index 3e28231e..940abe80 100644 --- a/src/lib/Configuration/UI/Mapper/CustomTag/CommonAttributeMapper.php +++ b/src/lib/Configuration/UI/Mapper/CustomTag/CommonAttributeMapper.php @@ -39,5 +39,3 @@ public function mapConfig( ]; } } - -class_alias(CommonAttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\CommonAttributeMapper'); diff --git a/src/lib/Configuration/UI/Mapper/CustomTemplateConfigMapper.php b/src/lib/Configuration/UI/Mapper/CustomTemplateConfigMapper.php index c1eabadb..c2bc373a 100644 --- a/src/lib/Configuration/UI/Mapper/CustomTemplateConfigMapper.php +++ b/src/lib/Configuration/UI/Mapper/CustomTemplateConfigMapper.php @@ -15,5 +15,3 @@ interface CustomTemplateConfigMapper { public function mapConfig(array $enabledCustomTemplates): array; } - -class_alias(CustomTemplateConfigMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTemplateConfigMapper'); diff --git a/src/lib/Configuration/UI/Mapper/OnlineEditor.php b/src/lib/Configuration/UI/Mapper/OnlineEditor.php index 73b08c40..0cadbbad 100644 --- a/src/lib/Configuration/UI/Mapper/OnlineEditor.php +++ b/src/lib/Configuration/UI/Mapper/OnlineEditor.php @@ -87,5 +87,3 @@ public function mapDataAttributesConfiguration(array $semanticConfiguration): ar return $configuration; } } - -class_alias(OnlineEditor::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\OnlineEditor'); diff --git a/src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php b/src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php index 5e05c8ba..6e15daa7 100644 --- a/src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php +++ b/src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php @@ -33,5 +33,3 @@ public function mapCssClassesConfiguration(array $semanticSemanticConfiguration) */ public function mapDataAttributesConfiguration(array $semanticConfiguration): array; } - -class_alias(OnlineEditorConfigMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\OnlineEditorConfigMapper'); diff --git a/src/lib/FieldType/RichText/RichTextStorage.php b/src/lib/FieldType/RichText/RichTextStorage.php index 174f2271..9d6cc50a 100644 --- a/src/lib/FieldType/RichText/RichTextStorage.php +++ b/src/lib/FieldType/RichText/RichTextStorage.php @@ -207,5 +207,3 @@ public function getIndexData(VersionInfo $versionInfo, Field $field, array $cont { } } - -class_alias(RichTextStorage::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage'); diff --git a/src/lib/FieldType/RichText/RichTextStorage/Gateway.php b/src/lib/FieldType/RichText/RichTextStorage/Gateway.php index d0a01db6..3a897eb3 100644 --- a/src/lib/FieldType/RichText/RichTextStorage/Gateway.php +++ b/src/lib/FieldType/RichText/RichTextStorage/Gateway.php @@ -102,5 +102,3 @@ public function unlinkUrl($fieldId, $versionNo, array $excludeUrlIds = []) $this->urlGateway->unlinkUrl($fieldId, $versionNo, $excludeUrlIds); } } - -class_alias(Gateway::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway'); diff --git a/src/lib/FieldType/RichText/RichTextStorage/Gateway/DoctrineStorage.php b/src/lib/FieldType/RichText/RichTextStorage/Gateway/DoctrineStorage.php index f4b298ab..0308f569 100644 --- a/src/lib/FieldType/RichText/RichTextStorage/Gateway/DoctrineStorage.php +++ b/src/lib/FieldType/RichText/RichTextStorage/Gateway/DoctrineStorage.php @@ -59,5 +59,3 @@ public function getContentIds(array $remoteIds) return $objectRemoteIdMap; } } - -class_alias(DoctrineStorage::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway\DoctrineStorage'); diff --git a/src/lib/FieldType/RichText/SearchField.php b/src/lib/FieldType/RichText/SearchField.php index 6fb847c1..1df17eee 100644 --- a/src/lib/FieldType/RichText/SearchField.php +++ b/src/lib/FieldType/RichText/SearchField.php @@ -99,5 +99,3 @@ public function getDefaultSortField() return $this->getDefaultMatchField(); } } - -class_alias(SearchField::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\SearchField'); diff --git a/src/lib/FieldType/RichText/Type.php b/src/lib/FieldType/RichText/Type.php index 38b3afba..393345cd 100644 --- a/src/lib/FieldType/RichText/Type.php +++ b/src/lib/FieldType/RichText/Type.php @@ -297,5 +297,3 @@ public static function getTranslationMessages(): array ]; } } - -class_alias(Type::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Type'); diff --git a/src/lib/FieldType/RichText/Value.php b/src/lib/FieldType/RichText/Value.php index 60e458b7..82acfb64 100644 --- a/src/lib/FieldType/RichText/Value.php +++ b/src/lib/FieldType/RichText/Value.php @@ -51,5 +51,3 @@ public function __toString() return isset($this->xml) ? (string)$this->xml->saveXML() : self::EMPTY_VALUE; } } - -class_alias(Value::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Value'); diff --git a/src/lib/Form/DataTransformer/RichTextTransformer.php b/src/lib/Form/DataTransformer/RichTextTransformer.php index a37bc5ac..c83f8307 100644 --- a/src/lib/Form/DataTransformer/RichTextTransformer.php +++ b/src/lib/Form/DataTransformer/RichTextTransformer.php @@ -79,5 +79,3 @@ public function reverseTransform($value): string } } } - -class_alias(RichTextTransformer::class, 'EzSystems\EzPlatformRichText\Form\DataTransformer\RichTextTransformer'); diff --git a/src/lib/Form/DataTransformer/RichTextValueTransformer.php b/src/lib/Form/DataTransformer/RichTextValueTransformer.php index c78f96bf..f9079788 100644 --- a/src/lib/Form/DataTransformer/RichTextValueTransformer.php +++ b/src/lib/Form/DataTransformer/RichTextValueTransformer.php @@ -60,5 +60,3 @@ public function reverseTransform($value) return $this->fieldType->fromHash(['xml' => $value]); } } - -class_alias(RichTextValueTransformer::class, 'EzSystems\EzPlatformRichText\Form\DataTransformer\RichTextValueTransformer'); diff --git a/src/lib/Form/Mapper/RichTextFormMapper.php b/src/lib/Form/Mapper/RichTextFormMapper.php index 6eddb6d0..0ddd9c54 100644 --- a/src/lib/Form/Mapper/RichTextFormMapper.php +++ b/src/lib/Form/Mapper/RichTextFormMapper.php @@ -44,5 +44,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(RichTextFormMapper::class, 'EzSystems\EzPlatformRichText\Form\Mapper\RichTextFormMapper'); diff --git a/src/lib/Form/Type/RichTextFieldType.php b/src/lib/Form/Type/RichTextFieldType.php index 0c925cd6..2bec1fa0 100644 --- a/src/lib/Form/Type/RichTextFieldType.php +++ b/src/lib/Form/Type/RichTextFieldType.php @@ -55,5 +55,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) )); } } - -class_alias(RichTextFieldType::class, 'EzSystems\EzPlatformRichText\Form\Type\RichTextFieldType'); diff --git a/src/lib/Form/Type/RichTextType.php b/src/lib/Form/Type/RichTextType.php index a1cbd8f8..aa634601 100644 --- a/src/lib/Form/Type/RichTextType.php +++ b/src/lib/Form/Type/RichTextType.php @@ -90,5 +90,3 @@ public function getBlockPrefix(): string return 'richtext'; } } - -class_alias(RichTextType::class, 'EzSystems\EzPlatformRichText\Form\Type\RichTextType'); diff --git a/src/lib/Persistence/Legacy/RichTextFieldValueConverter.php b/src/lib/Persistence/Legacy/RichTextFieldValueConverter.php index 26a35713..19bf2142 100644 --- a/src/lib/Persistence/Legacy/RichTextFieldValueConverter.php +++ b/src/lib/Persistence/Legacy/RichTextFieldValueConverter.php @@ -77,5 +77,3 @@ public function getIndexColumn() return 'sort_key_string'; } } - -class_alias(RichTextFieldValueConverter::class, 'EzSystems\EzPlatformRichText\eZ\Persistence\Legacy\RichTextFieldValueConverter'); diff --git a/src/lib/REST/FieldTypeProcessor/RichTextProcessor.php b/src/lib/REST/FieldTypeProcessor/RichTextProcessor.php index 28436850..e9c4fb78 100644 --- a/src/lib/REST/FieldTypeProcessor/RichTextProcessor.php +++ b/src/lib/REST/FieldTypeProcessor/RichTextProcessor.php @@ -39,5 +39,3 @@ public function postProcessValueHash($outgoingValueHash) return $outgoingValueHash; } } - -class_alias(RichTextProcessor::class, 'EzSystems\EzPlatformRichText\eZ\REST\FieldTypeProcessor\RichTextProcessor'); diff --git a/src/lib/RichText/Converter/Aggregate.php b/src/lib/RichText/Converter/Aggregate.php index 7fe34895..377d17b4 100644 --- a/src/lib/RichText/Converter/Aggregate.php +++ b/src/lib/RichText/Converter/Aggregate.php @@ -52,5 +52,3 @@ public function addConverter(Converter $converter): void $this->converters[] = $converter; } } - -class_alias(Aggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Aggregate'); diff --git a/src/lib/RichText/Converter/Html5.php b/src/lib/RichText/Converter/Html5.php index 07e1bafa..fc016e64 100644 --- a/src/lib/RichText/Converter/Html5.php +++ b/src/lib/RichText/Converter/Html5.php @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver parent::__construct($stylesheet, $customStylesheets); } } - -class_alias(Html5::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5'); diff --git a/src/lib/RichText/Converter/Html5Edit.php b/src/lib/RichText/Converter/Html5Edit.php index b71ec663..2b3c4025 100644 --- a/src/lib/RichText/Converter/Html5Edit.php +++ b/src/lib/RichText/Converter/Html5Edit.php @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver parent::__construct($stylesheet, $customStylesheets); } } - -class_alias(Html5Edit::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5Edit'); diff --git a/src/lib/RichText/Converter/Html5Input.php b/src/lib/RichText/Converter/Html5Input.php index 7eecbc64..e20928f1 100644 --- a/src/lib/RichText/Converter/Html5Input.php +++ b/src/lib/RichText/Converter/Html5Input.php @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver parent::__construct($stylesheet, $customStylesheets); } } - -class_alias(Html5Input::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5Input'); diff --git a/src/lib/RichText/Converter/Link.php b/src/lib/RichText/Converter/Link.php index 3035bb23..8796842d 100644 --- a/src/lib/RichText/Converter/Link.php +++ b/src/lib/RichText/Converter/Link.php @@ -150,5 +150,3 @@ private function generateUrlAliasForLocation(Location $location, string $fragmen return $urlAlias . $fragment; } } - -class_alias(Link::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Link'); diff --git a/src/lib/RichText/Converter/ProgramListing.php b/src/lib/RichText/Converter/ProgramListing.php index b1e937f9..c8269b1f 100644 --- a/src/lib/RichText/Converter/ProgramListing.php +++ b/src/lib/RichText/Converter/ProgramListing.php @@ -42,5 +42,3 @@ public function convert(DOMDocument $document) return $document; } } - -class_alias(ProgramListing::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\ProgramListing'); diff --git a/src/lib/RichText/Converter/Render.php b/src/lib/RichText/Converter/Render.php index d6cf5e6b..605c9f44 100644 --- a/src/lib/RichText/Converter/Render.php +++ b/src/lib/RichText/Converter/Render.php @@ -77,5 +77,3 @@ protected function extractHash(DOMNode $configHash) return $hash; } } - -class_alias(Render::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render'); diff --git a/src/lib/RichText/Converter/Render/Embed.php b/src/lib/RichText/Converter/Render/Embed.php index 0fad007a..9b0e49bf 100644 --- a/src/lib/RichText/Converter/Render/Embed.php +++ b/src/lib/RichText/Converter/Render/Embed.php @@ -340,5 +340,3 @@ private function extractCustomDataAttributes(DOMDocument $document, DOMNode $emb return $dataAttributes; } } - -class_alias(Embed::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render\Embed'); diff --git a/src/lib/RichText/Converter/Render/Template.php b/src/lib/RichText/Converter/Render/Template.php index 414208a5..487c87c3 100644 --- a/src/lib/RichText/Converter/Render/Template.php +++ b/src/lib/RichText/Converter/Render/Template.php @@ -194,5 +194,3 @@ private function wrapContentWithLiteralLayout(DOMNode $rootNode, DOMNode $node): return $rootNode->appendChild($literalLayoutNode); } } - -class_alias(Template::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render\Template'); diff --git a/src/lib/RichText/Converter/Xslt.php b/src/lib/RichText/Converter/Xslt.php index a0e3f1e5..e5ca11b2 100644 --- a/src/lib/RichText/Converter/Xslt.php +++ b/src/lib/RichText/Converter/Xslt.php @@ -147,5 +147,3 @@ public function convert(DOMDocument $document) return $document; } } - -class_alias(Xslt::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Xslt'); diff --git a/src/lib/RichText/ConverterDispatcher.php b/src/lib/RichText/ConverterDispatcher.php index 7529c469..bbcdd705 100644 --- a/src/lib/RichText/ConverterDispatcher.php +++ b/src/lib/RichText/ConverterDispatcher.php @@ -75,5 +75,3 @@ public function dispatch(DOMDocument $document) throw new NotFoundException('Converter', $documentNamespace); } } - -class_alias(ConverterDispatcher::class, 'EzSystems\EzPlatformRichText\eZ\RichText\ConverterDispatcher'); diff --git a/src/lib/RichText/DOMDocumentFactory.php b/src/lib/RichText/DOMDocumentFactory.php index 5cbcd964..8beae7ab 100644 --- a/src/lib/RichText/DOMDocumentFactory.php +++ b/src/lib/RichText/DOMDocumentFactory.php @@ -41,5 +41,3 @@ public function loadXMLString(string $xmlString): DOMDocument return $document; } } - -class_alias(DOMDocumentFactory::class, 'EzSystems\EzPlatformRichText\eZ\RichText\DOMDocumentFactory'); diff --git a/src/lib/RichText/Exception/InvalidXmlException.php b/src/lib/RichText/Exception/InvalidXmlException.php index 54d4a69f..11c61c69 100644 --- a/src/lib/RichText/Exception/InvalidXmlException.php +++ b/src/lib/RichText/Exception/InvalidXmlException.php @@ -43,5 +43,3 @@ public function getErrors(): array return $this->errors; } } - -class_alias(InvalidXmlException::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Exception\InvalidXmlException'); diff --git a/src/lib/RichText/InputHandler.php b/src/lib/RichText/InputHandler.php index c99f09c2..499d738e 100644 --- a/src/lib/RichText/InputHandler.php +++ b/src/lib/RichText/InputHandler.php @@ -118,5 +118,3 @@ public function validate(DOMDocument $document): array return $this->docbookValidator->validateDocument($document); } } - -class_alias(InputHandler::class, 'EzSystems\EzPlatformRichText\eZ\RichText\InputHandler'); diff --git a/src/lib/RichText/Normalizer.php b/src/lib/RichText/Normalizer.php index 822a1a5a..7e451265 100644 --- a/src/lib/RichText/Normalizer.php +++ b/src/lib/RichText/Normalizer.php @@ -31,5 +31,3 @@ abstract public function accept($input); */ abstract public function normalize($input); } - -class_alias(Normalizer::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer'); diff --git a/src/lib/RichText/Normalizer/Aggregate.php b/src/lib/RichText/Normalizer/Aggregate.php index f11c9330..f0dfa359 100644 --- a/src/lib/RichText/Normalizer/Aggregate.php +++ b/src/lib/RichText/Normalizer/Aggregate.php @@ -62,5 +62,3 @@ public function normalize($input) return $input; } } - -class_alias(Aggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer\Aggregate'); diff --git a/src/lib/RichText/Normalizer/DocumentTypeDefinition.php b/src/lib/RichText/Normalizer/DocumentTypeDefinition.php index 96fd59da..8e717e00 100644 --- a/src/lib/RichText/Normalizer/DocumentTypeDefinition.php +++ b/src/lib/RichText/Normalizer/DocumentTypeDefinition.php @@ -106,5 +106,3 @@ private function getExpression() return $this->expression; } } - -class_alias(DocumentTypeDefinition::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer\DocumentTypeDefinition'); diff --git a/src/lib/RichText/RelationProcessor.php b/src/lib/RichText/RelationProcessor.php index d49c4e0c..c888cdd8 100644 --- a/src/lib/RichText/RelationProcessor.php +++ b/src/lib/RichText/RelationProcessor.php @@ -93,5 +93,3 @@ private function getRelatedObjectIds(DOMDocument $xml, array $tagNames): array ]; } } - -class_alias(RelationProcessor::class, 'EzSystems\EzPlatformRichText\eZ\RichText\RelationProcessor'); diff --git a/src/lib/RichText/Renderer.php b/src/lib/RichText/Renderer.php index 450c8b48..e845e9d0 100644 --- a/src/lib/RichText/Renderer.php +++ b/src/lib/RichText/Renderer.php @@ -487,5 +487,3 @@ static function (Repository $repository) use ($id) { return $location; } } - -class_alias(Renderer::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Renderer'); diff --git a/src/lib/RichText/Validator/CustomTagsValidator.php b/src/lib/RichText/Validator/CustomTagsValidator.php index ed02085e..5cd0f1c9 100644 --- a/src/lib/RichText/Validator/CustomTagsValidator.php +++ b/src/lib/RichText/Validator/CustomTagsValidator.php @@ -101,5 +101,3 @@ public function validateDocument(DOMDocument $xmlDocument): array return $errors; } } - -class_alias(CustomTagsValidator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\CustomTagsValidator'); diff --git a/src/lib/RichText/Validator/InternalLinkValidator.php b/src/lib/RichText/Validator/InternalLinkValidator.php index eb2d8c73..e6996c0c 100644 --- a/src/lib/RichText/Validator/InternalLinkValidator.php +++ b/src/lib/RichText/Validator/InternalLinkValidator.php @@ -147,5 +147,3 @@ private function getXPathForLinkTag($tagName) return "//docbook:{$tagName}[starts-with(@xlink:href, 'ezcontent://') or starts-with(@xlink:href, 'ezlocation://') or starts-with(@xlink:href, 'ezremote://')]"; } } - -class_alias(InternalLinkValidator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\InternalLinkValidator'); diff --git a/src/lib/RichText/Validator/Validator.php b/src/lib/RichText/Validator/Validator.php index c055e140..fd56b805 100644 --- a/src/lib/RichText/Validator/Validator.php +++ b/src/lib/RichText/Validator/Validator.php @@ -153,5 +153,3 @@ protected function formatSVRLFailure(DOMElement $failedAssert) return (strlen($location) ? $location . ': ' : '') . $failedAssert->textContent; } } - -class_alias(Validator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\Validator'); diff --git a/src/lib/RichText/Validator/ValidatorAggregate.php b/src/lib/RichText/Validator/ValidatorAggregate.php index af9ead76..a72f0369 100644 --- a/src/lib/RichText/Validator/ValidatorAggregate.php +++ b/src/lib/RichText/Validator/ValidatorAggregate.php @@ -40,5 +40,3 @@ public function validateDocument(DOMDocument $xmlDocument): array return $validationErrors; } } - -class_alias(ValidatorAggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\ValidatorAggregate'); diff --git a/src/lib/RichText/Validator/ValidatorDispatcher.php b/src/lib/RichText/Validator/ValidatorDispatcher.php index 2da8d7ff..8fd97958 100644 --- a/src/lib/RichText/Validator/ValidatorDispatcher.php +++ b/src/lib/RichText/Validator/ValidatorDispatcher.php @@ -83,5 +83,3 @@ public function validateDocument(DOMDocument $xmlDocument): array return $this->dispatch($xmlDocument); } } - -class_alias(ValidatorDispatcher::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\ValidatorDispatcher'); diff --git a/src/lib/RichText/XmlBase.php b/src/lib/RichText/XmlBase.php index 4fdf163f..17b888ee 100644 --- a/src/lib/RichText/XmlBase.php +++ b/src/lib/RichText/XmlBase.php @@ -115,5 +115,3 @@ protected function collectErrors() return $errors; } } - -class_alias(XmlBase::class, 'EzSystems\EzPlatformRichText\eZ\RichText\XmlBase'); diff --git a/src/lib/Translation/Extractor/OnlineEditorCustomAttributesExtractor.php b/src/lib/Translation/Extractor/OnlineEditorCustomAttributesExtractor.php index fdca10a6..1d8fa074 100644 --- a/src/lib/Translation/Extractor/OnlineEditorCustomAttributesExtractor.php +++ b/src/lib/Translation/Extractor/OnlineEditorCustomAttributesExtractor.php @@ -111,5 +111,3 @@ private function extractMessagesForScope(MessageCatalogue $catalogue, string $sc } } } - -class_alias(OnlineEditorCustomAttributesExtractor::class, 'EzSystems\EzPlatformRichText\Translation\Extractor\OnlineEditorCustomAttributesExtractor'); diff --git a/src/lib/Validator/Constraints/RichText.php b/src/lib/Validator/Constraints/RichText.php index e3b2aacc..7bae6240 100644 --- a/src/lib/Validator/Constraints/RichText.php +++ b/src/lib/Validator/Constraints/RichText.php @@ -17,5 +17,3 @@ class RichText extends Constraint { public $message = 'Invalid value'; } - -class_alias(RichText::class, 'EzSystems\EzPlatformRichText\Validator\Constraints\RichText'); diff --git a/src/lib/Validator/Constraints/RichTextValidator.php b/src/lib/Validator/Constraints/RichTextValidator.php index c76f397d..a63919f1 100644 --- a/src/lib/Validator/Constraints/RichTextValidator.php +++ b/src/lib/Validator/Constraints/RichTextValidator.php @@ -53,5 +53,3 @@ public function validate($value, Constraint $constraint): void } } } - -class_alias(RichTextValidator::class, 'EzSystems\EzPlatformRichText\Validator\Constraints\RichTextValidator'); diff --git a/tests/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPassTest.php b/tests/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPassTest.php index da152f37..5e7a6eef 100644 --- a/tests/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPassTest.php +++ b/tests/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPassTest.php @@ -67,5 +67,3 @@ public function testCollectProviders() ); } } - -class_alias(RichTextHtml5ConverterPassTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\DependencyInjection\Compiler\RichTextHtml5ConverterPassTest'); diff --git a/tests/bundle/DependencyInjection/Configuration/ConfigurationTest.php b/tests/bundle/DependencyInjection/Configuration/ConfigurationTest.php index e3950a8e..9d236f5e 100644 --- a/tests/bundle/DependencyInjection/Configuration/ConfigurationTest.php +++ b/tests/bundle/DependencyInjection/Configuration/ConfigurationTest.php @@ -130,5 +130,3 @@ public function testProcessingConfiguration( $this->assertProcessedConfigurationEquals($configurationValues, $expectedProcessedConfiguration); } } - -class_alias(ConfigurationTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\DependencyInjection\Configuration\ConfigurationTest'); diff --git a/tests/bundle/DependencyInjection/Configuration/Parser/FieldType/RichTextTest.php b/tests/bundle/DependencyInjection/Configuration/Parser/FieldType/RichTextTest.php index 288aba5d..32c63c08 100644 --- a/tests/bundle/DependencyInjection/Configuration/Parser/FieldType/RichTextTest.php +++ b/tests/bundle/DependencyInjection/Configuration/Parser/FieldType/RichTextTest.php @@ -414,5 +414,3 @@ public function richTextSettingsProvider() ]; } } - -class_alias(RichTextTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\DependencyInjection\Configuration\Parser\FieldType\RichTextTest'); diff --git a/tests/bundle/DependencyInjection/IbexaFieldTypeRichTextExtensionTest.php b/tests/bundle/DependencyInjection/IbexaFieldTypeRichTextExtensionTest.php index 72efdb04..f02151f9 100644 --- a/tests/bundle/DependencyInjection/IbexaFieldTypeRichTextExtensionTest.php +++ b/tests/bundle/DependencyInjection/IbexaFieldTypeRichTextExtensionTest.php @@ -165,5 +165,3 @@ public function inlineTagDataProvider(): iterable ]; } } - -class_alias(IbexaFieldTypeRichTextExtensionTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\DependencyInjection\IbexaFieldTypeRichTextExtensionTest'); diff --git a/tests/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtensionTest.php b/tests/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtensionTest.php index 1e8d4da7..c9d05027 100644 --- a/tests/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtensionTest.php +++ b/tests/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtensionTest.php @@ -67,5 +67,3 @@ public function testGetFunctions(): void self::assertEquals('ibexa_richtext_youtube_extract_id', $result[0]->getName()); } } - -class_alias(YoutubeIdExtractorExtensionTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\Templating\Twig\Extension\YoutubeIdExtractorExtensionTest'); diff --git a/tests/lib/Configuration/AggregateProviderTest.php b/tests/lib/Configuration/AggregateProviderTest.php index b6072d3b..063b83a3 100644 --- a/tests/lib/Configuration/AggregateProviderTest.php +++ b/tests/lib/Configuration/AggregateProviderTest.php @@ -88,5 +88,3 @@ public function getConfiguration(): array ]; } } - -class_alias(AggregateProviderTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\AggregateProviderTest'); diff --git a/tests/lib/Configuration/Provider/AlloyEditorTest.php b/tests/lib/Configuration/Provider/AlloyEditorTest.php index 02ac099c..50f60f98 100644 --- a/tests/lib/Configuration/Provider/AlloyEditorTest.php +++ b/tests/lib/Configuration/Provider/AlloyEditorTest.php @@ -224,5 +224,3 @@ private function buildTestToolbarReturnCallback(array $buttonsConfig): callable }; } } - -class_alias(AlloyEditorTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\AlloyEditorTest'); diff --git a/tests/lib/Configuration/Provider/BaseCustomTemplateProviderTestCase.php b/tests/lib/Configuration/Provider/BaseCustomTemplateProviderTestCase.php index 9882c5b3..71795133 100644 --- a/tests/lib/Configuration/Provider/BaseCustomTemplateProviderTestCase.php +++ b/tests/lib/Configuration/Provider/BaseCustomTemplateProviderTestCase.php @@ -59,5 +59,3 @@ final public function testGetConfiguration() ); } } - -class_alias(BaseCustomTemplateProviderTestCase::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\BaseCustomTemplateProviderTestCase'); diff --git a/tests/lib/Configuration/Provider/BaseProviderTestCase.php b/tests/lib/Configuration/Provider/BaseProviderTestCase.php index 0c5787d0..ddda1e54 100644 --- a/tests/lib/Configuration/Provider/BaseProviderTestCase.php +++ b/tests/lib/Configuration/Provider/BaseProviderTestCase.php @@ -37,5 +37,3 @@ final public function testGetName(): void ); } } - -class_alias(BaseProviderTestCase::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\BaseProviderTestCase'); diff --git a/tests/lib/Configuration/Provider/CKEditorTest.php b/tests/lib/Configuration/Provider/CKEditorTest.php index 88ee3c62..eb4171e6 100644 --- a/tests/lib/Configuration/Provider/CKEditorTest.php +++ b/tests/lib/Configuration/Provider/CKEditorTest.php @@ -459,5 +459,3 @@ private function buildTestToolbarReturnCallback(array $buttonsConfig): callable }; } } - -class_alias(CKEditorTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\CKEditorTest'); diff --git a/tests/lib/Configuration/Provider/CustomStyleProviderTest.php b/tests/lib/Configuration/Provider/CustomStyleProviderTest.php index 3fa53f53..df119f15 100644 --- a/tests/lib/Configuration/Provider/CustomStyleProviderTest.php +++ b/tests/lib/Configuration/Provider/CustomStyleProviderTest.php @@ -33,5 +33,3 @@ protected function getCustomTemplateSiteAccessConfigParamName(): string return 'fieldtypes.ezrichtext.custom_styles'; } } - -class_alias(CustomStyleProviderTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\CustomStyleProviderTest'); diff --git a/tests/lib/Configuration/Provider/CustomTagProviderTest.php b/tests/lib/Configuration/Provider/CustomTagProviderTest.php index a131d43e..5bef1657 100644 --- a/tests/lib/Configuration/Provider/CustomTagProviderTest.php +++ b/tests/lib/Configuration/Provider/CustomTagProviderTest.php @@ -33,5 +33,3 @@ protected function getCustomTemplateSiteAccessConfigParamName(): string return 'fieldtypes.ezrichtext.custom_tags'; } } - -class_alias(CustomTagProviderTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\Provider\CustomTagProviderTest'); diff --git a/tests/lib/Configuration/UI/Config/Mapper/CustomTagTest.php b/tests/lib/Configuration/UI/Config/Mapper/CustomTagTest.php index 54d49b17..5197d7e1 100644 --- a/tests/lib/Configuration/UI/Config/Mapper/CustomTagTest.php +++ b/tests/lib/Configuration/UI/Config/Mapper/CustomTagTest.php @@ -225,5 +225,3 @@ private function getPackagesMock(): MockObject return $packagesMock; } } - -class_alias(CustomTagTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\UI\Config\Mapper\CustomTagTest'); diff --git a/tests/lib/Configuration/UI/Config/Mapper/OnlineEditorTest.php b/tests/lib/Configuration/UI/Config/Mapper/OnlineEditorTest.php index 50591598..cae27c4e 100644 --- a/tests/lib/Configuration/UI/Config/Mapper/OnlineEditorTest.php +++ b/tests/lib/Configuration/UI/Config/Mapper/OnlineEditorTest.php @@ -215,5 +215,3 @@ public function testMapDataAttributesConfiguration( ); } } - -class_alias(OnlineEditorTest::class, 'EzSystems\Tests\EzPlatformRichText\Configuration\UI\Config\Mapper\OnlineEditorTest'); diff --git a/tests/lib/FieldType/RichText/Gateway/DoctrineStorageTest.php b/tests/lib/FieldType/RichText/Gateway/DoctrineStorageTest.php index 6d5b9326..ab7623be 100644 --- a/tests/lib/FieldType/RichText/Gateway/DoctrineStorageTest.php +++ b/tests/lib/FieldType/RichText/Gateway/DoctrineStorageTest.php @@ -59,5 +59,3 @@ protected function getStorageGateway() return $this->storageGateway; } } - -class_alias(DoctrineStorageTest::class, 'EzSystems\Tests\EzPlatformRichText\FieldType\RichText\Gateway\DoctrineStorageTest'); diff --git a/tests/lib/FieldType/RichText/RichTextStorageTest.php b/tests/lib/FieldType/RichText/RichTextStorageTest.php index 3c43025d..d157ed0d 100644 --- a/tests/lib/FieldType/RichText/RichTextStorageTest.php +++ b/tests/lib/FieldType/RichText/RichTextStorageTest.php @@ -433,5 +433,3 @@ protected function getGatewayMock() return $this->gatewayMock; } } - -class_alias(RichTextStorageTest::class, 'EzSystems\Tests\EzPlatformRichText\FieldType\RichText\RichTextStorageTest'); diff --git a/tests/lib/FieldType/RichText/SearchFieldTest.php b/tests/lib/FieldType/RichText/SearchFieldTest.php index a5b68ba1..27d74b7f 100644 --- a/tests/lib/FieldType/RichText/SearchFieldTest.php +++ b/tests/lib/FieldType/RichText/SearchFieldTest.php @@ -135,5 +135,3 @@ private function getEmptyXml(): string return '
'; } } - -class_alias(SearchFieldTest::class, 'EzSystems\Tests\EzPlatformRichText\FieldType\RichText\SearchFieldTest'); diff --git a/tests/lib/FieldType/RichTextTest.php b/tests/lib/FieldType/RichTextTest.php index ea8c3d01..f18d1a1f 100644 --- a/tests/lib/FieldType/RichTextTest.php +++ b/tests/lib/FieldType/RichTextTest.php @@ -465,5 +465,3 @@ public function provideDataForGetName() return []; } } - -class_alias(RichTextTest::class, 'EzSystems\Tests\EzPlatformRichText\FieldType\RichTextTest'); diff --git a/tests/lib/Form/DataTransformer/RichTextTransformerTest.php b/tests/lib/Form/DataTransformer/RichTextTransformerTest.php index 43db7354..478a8deb 100644 --- a/tests/lib/Form/DataTransformer/RichTextTransformerTest.php +++ b/tests/lib/Form/DataTransformer/RichTextTransformerTest.php @@ -139,5 +139,3 @@ public function dataProviderForReverseTransformTransformationFailedException() ]; } } - -class_alias(RichTextTransformerTest::class, 'EzSystems\Tests\EzPlatformRichText\Form\DataTransformer\RichTextTransformerTest'); diff --git a/tests/lib/Persistence/Legacy/Tests/Content/FieldValue/Converter/RichTextFieldValueConverterTest.php b/tests/lib/Persistence/Legacy/Tests/Content/FieldValue/Converter/RichTextFieldValueConverterTest.php index 231fdc14..47ce2473 100644 --- a/tests/lib/Persistence/Legacy/Tests/Content/FieldValue/Converter/RichTextFieldValueConverterTest.php +++ b/tests/lib/Persistence/Legacy/Tests/Content/FieldValue/Converter/RichTextFieldValueConverterTest.php @@ -77,5 +77,3 @@ public function testToFieldValue() self::assertSame($this->docbookString, $fieldValue->data); } } - -class_alias(RichTextFieldValueConverterTest::class, 'EzSystems\EzPlatformRichText\Persistence\Legacy\Tests\Content\FieldValue\Converter\RichTextFieldValueConverterTest'); diff --git a/tests/lib/REST/FieldTypeProcessor/RichTextProcessorTest.php b/tests/lib/REST/FieldTypeProcessor/RichTextProcessorTest.php index 38f96fed..8790217c 100644 --- a/tests/lib/REST/FieldTypeProcessor/RichTextProcessorTest.php +++ b/tests/lib/REST/FieldTypeProcessor/RichTextProcessorTest.php @@ -68,5 +68,3 @@ protected function getProcessor() return new RichTextProcessor($this->converter); } } - -class_alias(RichTextProcessorTest::class, 'EzSystems\Tests\EzPlatformRichText\REST\FieldTypeProcessor\RichTextProcessorTest'); diff --git a/tests/lib/RichText/Converter/AggregateTest.php b/tests/lib/RichText/Converter/AggregateTest.php index c85a386f..d95f90e5 100644 --- a/tests/lib/RichText/Converter/AggregateTest.php +++ b/tests/lib/RichText/Converter/AggregateTest.php @@ -98,5 +98,3 @@ public function providerConvertWithLinkInCustomTag(): array ]; } } - -class_alias(AggregateTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\AggregateTest'); diff --git a/tests/lib/RichText/Converter/LinkTest.php b/tests/lib/RichText/Converter/LinkTest.php index 67b13a7b..34deea2a 100644 --- a/tests/lib/RichText/Converter/LinkTest.php +++ b/tests/lib/RichText/Converter/LinkTest.php @@ -559,5 +559,3 @@ public function testConvertBadContentLink($input, $output, $contentId, $exceptio self::assertEquals($expectedOutputDocument, $outputDocument); } } - -class_alias(LinkTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\LinkTest'); diff --git a/tests/lib/RichText/Converter/Render/EmbedTest.php b/tests/lib/RichText/Converter/Render/EmbedTest.php index 4fe26a73..75684893 100644 --- a/tests/lib/RichText/Converter/Render/EmbedTest.php +++ b/tests/lib/RichText/Converter/Render/EmbedTest.php @@ -885,5 +885,3 @@ protected function getLoggerMock() return $this->createMock(LoggerInterface::class); } } - -class_alias(EmbedTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Render\EmbedTest'); diff --git a/tests/lib/RichText/Converter/Render/TemplateTest.php b/tests/lib/RichText/Converter/Render/TemplateTest.php index baff3f99..13874242 100644 --- a/tests/lib/RichText/Converter/Render/TemplateTest.php +++ b/tests/lib/RichText/Converter/Render/TemplateTest.php @@ -352,5 +352,3 @@ protected function getConverterMock() ], ]; } - -class_alias(TemplateTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Render\TemplateTest'); diff --git a/tests/lib/RichText/Converter/Xslt/BaseTest.php b/tests/lib/RichText/Converter/Xslt/BaseTest.php index a9ade24b..de18c6f4 100644 --- a/tests/lib/RichText/Converter/Xslt/BaseTest.php +++ b/tests/lib/RichText/Converter/Xslt/BaseTest.php @@ -280,5 +280,3 @@ protected function getConversionValidationSchema() return []; } } - -class_alias(BaseTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Xslt\BaseTest'); diff --git a/tests/lib/RichText/Converter/Xslt/DebugRenderer.php b/tests/lib/RichText/Converter/Xslt/DebugRenderer.php index 23a39909..f9c049df 100644 --- a/tests/lib/RichText/Converter/Xslt/DebugRenderer.php +++ b/tests/lib/RichText/Converter/Xslt/DebugRenderer.php @@ -78,5 +78,3 @@ private function serializeIsInline(bool $isInline): string return $isInline ? 'true' : 'false'; } } - -class_alias(DebugRenderer::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Xslt\DebugRenderer'); diff --git a/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5EditTest.php b/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5EditTest.php index 725d1b2b..aae91bb8 100644 --- a/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5EditTest.php +++ b/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5EditTest.php @@ -84,5 +84,3 @@ protected function getCustomConversionTransformationStylesheets() ]; } } - -class_alias(DocbookToXhtml5EditTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Xslt\DocbookToXhtml5EditTest'); diff --git a/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5OutputTest.php b/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5OutputTest.php index 8cbec4d2..92b46479 100644 --- a/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5OutputTest.php +++ b/tests/lib/RichText/Converter/Xslt/DocbookToXhtml5OutputTest.php @@ -112,5 +112,3 @@ protected function getConverter(): Converter return $this->converter; } } - -class_alias(DocbookToXhtml5OutputTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Xslt\DocbookToXhtml5OutputTest'); diff --git a/tests/lib/RichText/Converter/Xslt/Xhtml5ToDocbookTest.php b/tests/lib/RichText/Converter/Xslt/Xhtml5ToDocbookTest.php index 5d70ceed..5b7d2b9e 100644 --- a/tests/lib/RichText/Converter/Xslt/Xhtml5ToDocbookTest.php +++ b/tests/lib/RichText/Converter/Xslt/Xhtml5ToDocbookTest.php @@ -119,5 +119,3 @@ protected function getConverter() return $this->converter; } } - -class_alias(Xhtml5ToDocbookTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Converter\Xslt\Xhtml5ToDocbookTest'); diff --git a/tests/lib/RichText/DOMDocumentFactoryTest.php b/tests/lib/RichText/DOMDocumentFactoryTest.php index 6750ad27..188b6498 100644 --- a/tests/lib/RichText/DOMDocumentFactoryTest.php +++ b/tests/lib/RichText/DOMDocumentFactoryTest.php @@ -56,5 +56,3 @@ public function testLoadXMLStringThrowsInvalidXmlException(): void $this->domDocumentFactory->loadXMLString('This is not XML'); } } - -class_alias(DOMDocumentFactoryTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\DOMDocumentFactoryTest'); diff --git a/tests/lib/RichText/InputHandlerTest.php b/tests/lib/RichText/InputHandlerTest.php index cdb7cbbb..69fbd4fa 100644 --- a/tests/lib/RichText/InputHandlerTest.php +++ b/tests/lib/RichText/InputHandlerTest.php @@ -228,5 +228,3 @@ public function testValidate(): void self::assertEquals($expectedErrors, $actualErrors); } } - -class_alias(InputHandlerTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\InputHandlerTest'); diff --git a/tests/lib/RichText/Normalizer/DocumentTypeDefinitionTest.php b/tests/lib/RichText/Normalizer/DocumentTypeDefinitionTest.php index cc4148e4..3a1cf370 100644 --- a/tests/lib/RichText/Normalizer/DocumentTypeDefinitionTest.php +++ b/tests/lib/RichText/Normalizer/DocumentTypeDefinitionTest.php @@ -217,5 +217,3 @@ protected function getNormalizer($documentElement, $namespace, $dtdPath) return new DocumentTypeDefinition($documentElement, $namespace, $dtdPath); } } - -class_alias(DocumentTypeDefinitionTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Normalizer\DocumentTypeDefinitionTest'); diff --git a/tests/lib/RichText/RelationProcessorTest.php b/tests/lib/RichText/RelationProcessorTest.php index 92b4c718..00a975ba 100644 --- a/tests/lib/RichText/RelationProcessorTest.php +++ b/tests/lib/RichText/RelationProcessorTest.php @@ -74,5 +74,3 @@ private function createDOMDocument(string $xml): DOMDocument return $document; } } - -class_alias(RelationProcessorTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\RelationProcessorTest'); diff --git a/tests/lib/RichText/RendererTest.php b/tests/lib/RichText/RendererTest.php index 74605fe9..68638e81 100644 --- a/tests/lib/RichText/RendererTest.php +++ b/tests/lib/RichText/RendererTest.php @@ -1811,5 +1811,3 @@ protected function getContentMock($mainLocationId) return $contentMock; } } - -class_alias(RendererTest::class, 'EzSystems\Tests\EzPlatformRichTextBundle\eZ\RichText\RendererTest'); diff --git a/tests/lib/RichText/Validator/CustomTagsValidatorTest.php b/tests/lib/RichText/Validator/CustomTagsValidatorTest.php index 90de4b02..ff2c5381 100644 --- a/tests/lib/RichText/Validator/CustomTagsValidatorTest.php +++ b/tests/lib/RichText/Validator/CustomTagsValidatorTest.php @@ -229,5 +229,3 @@ protected function createDocument($source) return $document; } } - -class_alias(CustomTagsValidatorTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Validator\CustomTagsValidatorTest'); diff --git a/tests/lib/RichText/Validator/DocbookTest.php b/tests/lib/RichText/Validator/DocbookTest.php index d2b76b36..e66cf605 100644 --- a/tests/lib/RichText/Validator/DocbookTest.php +++ b/tests/lib/RichText/Validator/DocbookTest.php @@ -201,5 +201,3 @@ protected function getConversionValidationSchemas() ]; } } - -class_alias(DocbookTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Validator\DocbookTest'); diff --git a/tests/lib/RichText/Validator/InternalLinkValidatorTest.php b/tests/lib/RichText/Validator/InternalLinkValidatorTest.php index 9fcd9a5c..936ec6d5 100644 --- a/tests/lib/RichText/Validator/InternalLinkValidatorTest.php +++ b/tests/lib/RichText/Validator/InternalLinkValidatorTest.php @@ -316,5 +316,3 @@ private function createInputDocument($scheme, $id) return $doc; } } - -class_alias(InternalLinkValidatorTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Validator\InternalLinkValidatorTest'); diff --git a/tests/lib/RichText/Validator/ValidatorAggregateTest.php b/tests/lib/RichText/Validator/ValidatorAggregateTest.php index 8be19cc2..a9895752 100644 --- a/tests/lib/RichText/Validator/ValidatorAggregateTest.php +++ b/tests/lib/RichText/Validator/ValidatorAggregateTest.php @@ -45,5 +45,3 @@ public function testValidateDocument(): void self::assertEquals($expectedErrors, $actualErrors); } } - -class_alias(ValidatorAggregateTest::class, 'EzSystems\Tests\EzPlatformRichText\RichText\Validator\ValidatorAggregateTest'); diff --git a/tests/lib/Validator/Constraints/RichTextValidatorTest.php b/tests/lib/Validator/Constraints/RichTextValidatorTest.php index b36ab8fa..e9504189 100644 --- a/tests/lib/Validator/Constraints/RichTextValidatorTest.php +++ b/tests/lib/Validator/Constraints/RichTextValidatorTest.php @@ -142,5 +142,3 @@ private function fetchErrorMessages(array $errors): array }, $errors); } } - -class_alias(RichTextValidatorTest::class, 'EzSystems\Tests\EzPlatformRichText\Validator\Constraints\RichTextValidatorTest');