From b17d5a0525b42144efaa93242799fa31ad82cd1e Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 21 May 2024 16:44:55 +0200 Subject: [PATCH 1/3] Dropped class_alias BC layer from production code --- src/bundle/Controller/ContentEditController.php | 2 -- src/bundle/Controller/UserController.php | 2 -- src/bundle/Controller/UserRegisterController.php | 2 -- .../Compiler/FieldTypeFormMapperDispatcherPass.php | 2 -- .../Configuration/Parser/ContentCreateView.php | 2 -- .../Configuration/Parser/ContentEdit.php | 2 -- .../Configuration/Parser/ContentEditView.php | 2 -- .../DependencyInjection/Configuration/Parser/UserEdit.php | 2 -- .../DependencyInjection/IbexaContentFormsExtension.php | 2 -- src/bundle/IbexaContentFormsBundle.php | 2 -- src/contracts/Data/Content/FieldData.php | 7 ------- src/contracts/FieldType/FieldValueFormMapperInterface.php | 7 ------- src/lib/Behat/Context/ContentEditContext.php | 2 -- src/lib/Behat/Context/ContentTypeContext.php | 2 -- src/lib/Behat/Context/FieldTypeFormContext.php | 2 -- src/lib/Behat/Context/PagelayoutContext.php | 2 -- src/lib/Behat/Context/SelectionFieldTypeFormContext.php | 2 -- src/lib/Behat/Context/UserRegistrationContext.php | 2 -- src/lib/ConfigResolver/MaxUploadSize.php | 2 -- .../Content/View/Builder/AbstractContentViewBuilder.php | 2 -- src/lib/Content/View/Builder/ContentCreateViewBuilder.php | 2 -- src/lib/Content/View/Builder/ContentEditViewBuilder.php | 2 -- src/lib/Content/View/ContentCreateDraftView.php | 2 -- src/lib/Content/View/ContentCreateSuccessView.php | 2 -- src/lib/Content/View/ContentCreateView.php | 2 -- src/lib/Content/View/ContentEditSuccessView.php | 2 -- src/lib/Content/View/ContentEditView.php | 2 -- src/lib/Content/View/ContentTypeValueView.php | 2 -- src/lib/Content/View/Filter/ContentCreateViewFilter.php | 2 -- src/lib/Content/View/Filter/ContentEditViewFilter.php | 2 -- .../Content/View/Provider/ContentCreateView/Configured.php | 2 -- .../Content/View/Provider/ContentEditView/Configured.php | 2 -- src/lib/Data/Content/ContentCreateData.php | 2 -- src/lib/Data/Content/ContentData.php | 2 -- src/lib/Data/Content/ContentUpdateData.php | 2 -- src/lib/Data/Content/CreateContentDraftData.php | 2 -- src/lib/Data/ContentTranslationData.php | 2 -- src/lib/Data/Mapper/ContentCreateMapper.php | 2 -- src/lib/Data/Mapper/ContentUpdateMapper.php | 2 -- src/lib/Data/Mapper/FormDataMapperInterface.php | 2 -- src/lib/Data/Mapper/UserCreateMapper.php | 2 -- src/lib/Data/Mapper/UserUpdateMapper.php | 2 -- src/lib/Data/NewnessCheckable.php | 2 -- src/lib/Data/NewnessChecker.php | 2 -- src/lib/Data/User/UserAccountFieldData.php | 2 -- src/lib/Data/User/UserCreateData.php | 2 -- src/lib/Data/User/UserUpdateData.php | 2 -- src/lib/Event/ContentCreateFieldOptionsEvent.php | 2 -- src/lib/Event/ContentFormEvents.php | 2 -- src/lib/Event/ContentUpdateFieldOptionsEvent.php | 2 -- src/lib/Event/FormActionEvent.php | 2 -- src/lib/EventListener/ViewTemplatesListener.php | 2 -- .../DataTransformer/AbstractBinaryBaseTransformer.php | 2 -- .../FieldType/DataTransformer/AuthorValueTransformer.php | 2 -- .../DataTransformer/BinaryFileValueTransformer.php | 2 -- .../FieldType/DataTransformer/DateTimeValueTransformer.php | 2 -- src/lib/FieldType/DataTransformer/DateValueTransformer.php | 2 -- .../FieldType/DataTransformer/FieldValueTransformer.php | 2 -- .../DataTransformer/ImageAssetValueTransformer.php | 2 -- .../FieldType/DataTransformer/ImageValueTransformer.php | 2 -- .../FieldType/DataTransformer/KeywordValueTransformer.php | 2 -- .../FieldType/DataTransformer/MediaValueTransformer.php | 2 -- .../DataTransformer/MultiSelectionValueTransformer.php | 2 -- .../DataTransformer/MultipleCountryValueTransformer.php | 2 -- .../DataTransformer/RelationListValueTransformer.php | 2 -- .../FieldType/DataTransformer/RelationValueTransformer.php | 2 -- .../DataTransformer/SingleCountryValueTransformer.php | 2 -- .../DataTransformer/SingleSelectionValueTransformer.php | 2 -- src/lib/FieldType/DataTransformer/TimeValueTransformer.php | 2 -- src/lib/FieldType/FieldTypeFormMapperDispatcher.php | 2 -- .../FieldType/FieldTypeFormMapperDispatcherInterface.php | 7 ------- src/lib/FieldType/Mapper/AbstractRelationFormMapper.php | 2 -- src/lib/FieldType/Mapper/AuthorFormMapper.php | 2 -- src/lib/FieldType/Mapper/BinaryFileFormMapper.php | 2 -- src/lib/FieldType/Mapper/CheckboxFormMapper.php | 2 -- src/lib/FieldType/Mapper/CountryFormMapper.php | 2 -- src/lib/FieldType/Mapper/DateFormMapper.php | 2 -- src/lib/FieldType/Mapper/DateTimeFormMapper.php | 2 -- src/lib/FieldType/Mapper/FloatFormMapper.php | 2 -- .../FieldType/Mapper/FormTypeBasedFieldValueFormMapper.php | 2 -- src/lib/FieldType/Mapper/ISBNFormMapper.php | 2 -- src/lib/FieldType/Mapper/ImageAssetFormMapper.php | 2 -- src/lib/FieldType/Mapper/ImageFormMapper.php | 2 -- src/lib/FieldType/Mapper/IntegerFormMapper.php | 2 -- src/lib/FieldType/Mapper/KeywordFormMapper.php | 2 -- src/lib/FieldType/Mapper/MapLocationFormMapper.php | 2 -- src/lib/FieldType/Mapper/MediaFormMapper.php | 2 -- src/lib/FieldType/Mapper/RelationFormMapper.php | 2 -- src/lib/FieldType/Mapper/RelationListFormMapper.php | 2 -- src/lib/FieldType/Mapper/SelectionFormMapper.php | 2 -- src/lib/FieldType/Mapper/TextBlockFormMapper.php | 2 -- src/lib/FieldType/Mapper/TextLineFormMapper.php | 2 -- src/lib/FieldType/Mapper/TimeFormMapper.php | 2 -- src/lib/FieldType/Mapper/UrlFormMapper.php | 2 -- .../FieldType/Mapper/UserAccountFieldValueFormMapper.php | 2 -- src/lib/Form/ActionDispatcher/AbstractActionDispatcher.php | 2 -- .../Form/ActionDispatcher/ActionDispatcherInterface.php | 2 -- src/lib/Form/ActionDispatcher/ContentDispatcher.php | 2 -- src/lib/Form/ActionDispatcher/UserDispatcher.php | 2 -- .../Form/EventSubscriber/SuppressValidationSubscriber.php | 2 -- src/lib/Form/EventSubscriber/UserFieldsSubscriber.php | 2 -- src/lib/Form/Processor/ContentFormProcessor.php | 2 -- src/lib/Form/Processor/SystemUrlRedirectProcessor.php | 2 -- src/lib/Form/Processor/User/UserCancelFormProcessor.php | 2 -- src/lib/Form/Processor/User/UserCreateFormProcessor.php | 2 -- src/lib/Form/Processor/User/UserUpdateFormProcessor.php | 2 -- src/lib/Form/Transformer/JsonToArrayTransformer.php | 2 -- src/lib/Form/Type/Content/BaseContentType.php | 2 -- src/lib/Form/Type/Content/ContentDraftCreateType.php | 2 -- src/lib/Form/Type/Content/ContentEditType.php | 2 -- src/lib/Form/Type/Content/ContentFieldType.php | 2 -- src/lib/Form/Type/Content/FieldCollectionType.php | 2 -- .../User/PasswordConstraintCheckboxType.php | 2 -- .../Form/Type/FieldType/Author/AuthorCollectionType.php | 2 -- src/lib/Form/Type/FieldType/Author/AuthorEntryType.php | 2 -- src/lib/Form/Type/FieldType/AuthorFieldType.php | 2 -- src/lib/Form/Type/FieldType/BinaryBaseFieldType.php | 2 -- src/lib/Form/Type/FieldType/BinaryFileFieldType.php | 2 -- src/lib/Form/Type/FieldType/CheckboxFieldType.php | 2 -- src/lib/Form/Type/FieldType/CountryFieldType.php | 2 -- src/lib/Form/Type/FieldType/DateFieldType.php | 2 -- src/lib/Form/Type/FieldType/DateTimeFieldType.php | 2 -- src/lib/Form/Type/FieldType/FloatFieldType.php | 2 -- src/lib/Form/Type/FieldType/ISBNFieldType.php | 2 -- src/lib/Form/Type/FieldType/ImageAssetFieldType.php | 2 -- src/lib/Form/Type/FieldType/ImageFieldType.php | 2 -- src/lib/Form/Type/FieldType/IntegerFieldType.php | 2 -- src/lib/Form/Type/FieldType/KeywordFieldType.php | 2 -- src/lib/Form/Type/FieldType/MapLocationFieldType.php | 2 -- src/lib/Form/Type/FieldType/MediaFieldType.php | 2 -- src/lib/Form/Type/FieldType/RelationFieldType.php | 2 -- src/lib/Form/Type/FieldType/RelationListFieldType.php | 2 -- src/lib/Form/Type/FieldType/SelectionFieldType.php | 2 -- src/lib/Form/Type/FieldType/TextBlockFieldType.php | 2 -- src/lib/Form/Type/FieldType/TextLineFieldType.php | 2 -- src/lib/Form/Type/FieldType/TimeFieldType.php | 2 -- src/lib/Form/Type/FieldType/UrlFieldType.php | 2 -- src/lib/Form/Type/FieldType/UserAccountFieldType.php | 2 -- src/lib/Form/Type/JsonArrayType.php | 2 -- src/lib/Form/Type/LocationType.php | 2 -- src/lib/Form/Type/SwitcherType.php | 2 -- src/lib/Form/Type/User/BaseUserType.php | 2 -- src/lib/Form/Type/User/UserCreateType.php | 2 -- src/lib/Form/Type/User/UserUpdateType.php | 2 -- src/lib/User/View/UserCreateView.php | 2 -- src/lib/User/View/UserRegisterConfirmView.php | 2 -- src/lib/User/View/UserRegisterFormView.php | 2 -- src/lib/User/View/UserUpdateView.php | 2 -- src/lib/Validator/Constraints/FieldTypeValidator.php | 2 -- src/lib/Validator/Constraints/FieldValue.php | 2 -- src/lib/Validator/Constraints/FieldValueValidator.php | 2 -- .../Validator/Constraints/FieldValueValidatorMessages.php | 2 -- src/lib/Validator/Constraints/Password.php | 2 -- src/lib/Validator/Constraints/PasswordValidator.php | 2 -- src/lib/Validator/Constraints/UserAccountPassword.php | 2 -- .../Validator/Constraints/UserAccountPasswordValidator.php | 2 -- src/lib/Validator/ValidationErrorsProcessor.php | 2 -- 157 files changed, 329 deletions(-) diff --git a/src/bundle/Controller/ContentEditController.php b/src/bundle/Controller/ContentEditController.php index 155d38bb..dc1888b8 100644 --- a/src/bundle/Controller/ContentEditController.php +++ b/src/bundle/Controller/ContentEditController.php @@ -147,5 +147,3 @@ public function editVersionDraftSuccessAction(ContentEditSuccessView $view): Con return $view; } } - -class_alias(ContentEditController::class, 'EzSystems\EzPlatformContentFormsBundle\Controller\ContentEditController'); diff --git a/src/bundle/Controller/UserController.php b/src/bundle/Controller/UserController.php index 1f94138e..6a9f2bd6 100644 --- a/src/bundle/Controller/UserController.php +++ b/src/bundle/Controller/UserController.php @@ -228,5 +228,3 @@ public function editAction( ); } } - -class_alias(UserController::class, 'EzSystems\EzPlatformContentFormsBundle\Controller\UserController'); diff --git a/src/bundle/Controller/UserRegisterController.php b/src/bundle/Controller/UserRegisterController.php index e77617fc..1df851aa 100644 --- a/src/bundle/Controller/UserRegisterController.php +++ b/src/bundle/Controller/UserRegisterController.php @@ -51,5 +51,3 @@ public function registerConfirmAction() return $this->userRegisterController->registerConfirmAction(); } } - -class_alias(UserRegisterController::class, 'EzSystems\EzPlatformContentFormsBundle\Controller\UserRegisterController'); diff --git a/src/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php b/src/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php index bd46d7f9..8e22de70 100644 --- a/src/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php +++ b/src/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php @@ -51,5 +51,3 @@ public function process(ContainerBuilder $container) } } } - -class_alias(FieldTypeFormMapperDispatcherPass::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\Compiler\FieldTypeFormMapperDispatcherPass'); diff --git a/src/bundle/DependencyInjection/Configuration/Parser/ContentCreateView.php b/src/bundle/DependencyInjection/Configuration/Parser/ContentCreateView.php index 293d17b5..86d2c37a 100644 --- a/src/bundle/DependencyInjection/Configuration/Parser/ContentCreateView.php +++ b/src/bundle/DependencyInjection/Configuration/Parser/ContentCreateView.php @@ -15,5 +15,3 @@ class ContentCreateView extends View public const NODE_KEY = 'content_create_view'; public const INFO = 'Template selection settings when displaying a content create form'; } - -class_alias(ContentCreateView::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\Configuration\Parser\ContentCreateView'); diff --git a/src/bundle/DependencyInjection/Configuration/Parser/ContentEdit.php b/src/bundle/DependencyInjection/Configuration/Parser/ContentEdit.php index 8908da0b..cc98543d 100644 --- a/src/bundle/DependencyInjection/Configuration/Parser/ContentEdit.php +++ b/src/bundle/DependencyInjection/Configuration/Parser/ContentEdit.php @@ -77,5 +77,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn } } } - -class_alias(ContentEdit::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\Configuration\Parser\ContentEdit'); diff --git a/src/bundle/DependencyInjection/Configuration/Parser/ContentEditView.php b/src/bundle/DependencyInjection/Configuration/Parser/ContentEditView.php index 1e8d9881..67c0111b 100644 --- a/src/bundle/DependencyInjection/Configuration/Parser/ContentEditView.php +++ b/src/bundle/DependencyInjection/Configuration/Parser/ContentEditView.php @@ -15,5 +15,3 @@ class ContentEditView extends View public const NODE_KEY = 'content_edit_view'; public const INFO = 'Template selection settings when displaying a content edit form'; } - -class_alias(ContentEditView::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\Configuration\Parser\ContentEditView'); diff --git a/src/bundle/DependencyInjection/Configuration/Parser/UserEdit.php b/src/bundle/DependencyInjection/Configuration/Parser/UserEdit.php index 6c442840..9c97654b 100644 --- a/src/bundle/DependencyInjection/Configuration/Parser/UserEdit.php +++ b/src/bundle/DependencyInjection/Configuration/Parser/UserEdit.php @@ -65,5 +65,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn } } } - -class_alias(UserEdit::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\Configuration\Parser\UserEdit'); diff --git a/src/bundle/DependencyInjection/IbexaContentFormsExtension.php b/src/bundle/DependencyInjection/IbexaContentFormsExtension.php index d9b11572..d6d4766f 100644 --- a/src/bundle/DependencyInjection/IbexaContentFormsExtension.php +++ b/src/bundle/DependencyInjection/IbexaContentFormsExtension.php @@ -53,5 +53,3 @@ private function shouldLoadTestServices(ContainerBuilder $container): bool && true === $container->getParameter('ibexa.behat.browser.enabled'); } } - -class_alias(IbexaContentFormsExtension::class, 'EzSystems\EzPlatformContentFormsBundle\DependencyInjection\EzPlatformContentFormsExtension'); diff --git a/src/bundle/IbexaContentFormsBundle.php b/src/bundle/IbexaContentFormsBundle.php index 70b6b33b..79bd52c3 100644 --- a/src/bundle/IbexaContentFormsBundle.php +++ b/src/bundle/IbexaContentFormsBundle.php @@ -31,5 +31,3 @@ public function build(ContainerBuilder $container) $eZExtension->addDefaultSettings(__DIR__ . '/Resources/config', ['ezpublish_default_settings.yaml']); } } - -class_alias(IbexaContentFormsBundle::class, 'EzSystems\EzPlatformContentFormsBundle\EzPlatformContentFormsBundle'); diff --git a/src/contracts/Data/Content/FieldData.php b/src/contracts/Data/Content/FieldData.php index c1f21afb..a054f626 100644 --- a/src/contracts/Data/Content/FieldData.php +++ b/src/contracts/Data/Content/FieldData.php @@ -36,10 +36,3 @@ public function getFieldTypeIdentifier() return $this->fieldDefinition->fieldTypeIdentifier; } } - -class_alias( - FieldData::class, - \EzSystems\RepositoryForms\Data\Content\FieldData::class -); - -class_alias(FieldData::class, 'EzSystems\EzPlatformContentForms\Data\Content\FieldData'); diff --git a/src/contracts/FieldType/FieldValueFormMapperInterface.php b/src/contracts/FieldType/FieldValueFormMapperInterface.php index ae5ed3be..6543eb6f 100644 --- a/src/contracts/FieldType/FieldValueFormMapperInterface.php +++ b/src/contracts/FieldType/FieldValueFormMapperInterface.php @@ -22,10 +22,3 @@ interface FieldValueFormMapperInterface */ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data); } - -class_alias( - FieldValueFormMapperInterface::class, - \EzSystems\RepositoryForms\FieldType\FieldValueFormMapperInterface::class -); - -class_alias(FieldValueFormMapperInterface::class, 'EzSystems\EzPlatformContentForms\FieldType\FieldValueFormMapperInterface'); diff --git a/src/lib/Behat/Context/ContentEditContext.php b/src/lib/Behat/Context/ContentEditContext.php index b3f430cb..b663edea 100644 --- a/src/lib/Behat/Context/ContentEditContext.php +++ b/src/lib/Behat/Context/ContentEditContext.php @@ -193,5 +193,3 @@ public function aContentCreationFormIsDisplayed() $this->visit('/content/create/nodraft/folder/eng-GB/2'); } } - -class_alias(ContentEditContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\ContentEditContext'); diff --git a/src/lib/Behat/Context/ContentTypeContext.php b/src/lib/Behat/Context/ContentTypeContext.php index 1e94510d..95a46b98 100644 --- a/src/lib/Behat/Context/ContentTypeContext.php +++ b/src/lib/Behat/Context/ContentTypeContext.php @@ -149,5 +149,3 @@ public function updateFieldDefinition($identifier, FieldDefinitionUpdateStruct $ ); } } - -class_alias(ContentTypeContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\ContentTypeContext'); diff --git a/src/lib/Behat/Context/FieldTypeFormContext.php b/src/lib/Behat/Context/FieldTypeFormContext.php index c3a9aea5..4efc63f4 100644 --- a/src/lib/Behat/Context/FieldTypeFormContext.php +++ b/src/lib/Behat/Context/FieldTypeFormContext.php @@ -238,5 +238,3 @@ private function getRequiredFieldTypeExceptions(string $fieldTypeIdentifier): ar return []; } } - -class_alias(FieldTypeFormContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\FieldTypeFormContext'); diff --git a/src/lib/Behat/Context/PagelayoutContext.php b/src/lib/Behat/Context/PagelayoutContext.php index 6f056a7e..a47f1f5d 100644 --- a/src/lib/Behat/Context/PagelayoutContext.php +++ b/src/lib/Behat/Context/PagelayoutContext.php @@ -55,5 +55,3 @@ public function getPageLayout(): string : $this->configResolver->getParameter('pagelayout', null, 'site'); } } - -class_alias(PagelayoutContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\PagelayoutContext'); diff --git a/src/lib/Behat/Context/SelectionFieldTypeFormContext.php b/src/lib/Behat/Context/SelectionFieldTypeFormContext.php index 9bbf1953..41493c7b 100644 --- a/src/lib/Behat/Context/SelectionFieldTypeFormContext.php +++ b/src/lib/Behat/Context/SelectionFieldTypeFormContext.php @@ -111,5 +111,3 @@ public function theInputIsAMultipleSelectionDropdown() $this->assertSession()->elementExists('css', $selector); } } - -class_alias(SelectionFieldTypeFormContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\SelectionFieldTypeFormContext'); diff --git a/src/lib/Behat/Context/UserRegistrationContext.php b/src/lib/Behat/Context/UserRegistrationContext.php index d743d55b..6b4463f3 100644 --- a/src/lib/Behat/Context/UserRegistrationContext.php +++ b/src/lib/Behat/Context/UserRegistrationContext.php @@ -388,5 +388,3 @@ public function thePageIsRenderedUsingTheTemplateConfiguredIn($template) ); } } - -class_alias(UserRegistrationContext::class, 'EzSystems\EzPlatformContentForms\Behat\Context\UserRegistrationContext'); diff --git a/src/lib/ConfigResolver/MaxUploadSize.php b/src/lib/ConfigResolver/MaxUploadSize.php index 1c93e29a..8fad6f6e 100644 --- a/src/lib/ConfigResolver/MaxUploadSize.php +++ b/src/lib/ConfigResolver/MaxUploadSize.php @@ -69,5 +69,3 @@ protected function stringToBytes(string $str): int return (int) $value; } } - -class_alias(MaxUploadSize::class, 'EzSystems\EzPlatformContentForms\ConfigResolver\MaxUploadSize'); diff --git a/src/lib/Content/View/Builder/AbstractContentViewBuilder.php b/src/lib/Content/View/Builder/AbstractContentViewBuilder.php index 3439e42e..a438272a 100644 --- a/src/lib/Content/View/Builder/AbstractContentViewBuilder.php +++ b/src/lib/Content/View/Builder/AbstractContentViewBuilder.php @@ -113,5 +113,3 @@ protected function resolveLanguage(array $parameters): Language ); } } - -class_alias(AbstractContentViewBuilder::class, 'EzSystems\EzPlatformContentForms\Content\View\Builder\AbstractContentViewBuilder'); diff --git a/src/lib/Content/View/Builder/ContentCreateViewBuilder.php b/src/lib/Content/View/Builder/ContentCreateViewBuilder.php index 458ded45..50d50768 100644 --- a/src/lib/Content/View/Builder/ContentCreateViewBuilder.php +++ b/src/lib/Content/View/Builder/ContentCreateViewBuilder.php @@ -151,5 +151,3 @@ private function resolveLocation(array $parameters): Location ); } } - -class_alias(ContentCreateViewBuilder::class, 'EzSystems\EzPlatformContentForms\Content\View\Builder\ContentCreateViewBuilder'); diff --git a/src/lib/Content/View/Builder/ContentEditViewBuilder.php b/src/lib/Content/View/Builder/ContentEditViewBuilder.php index 461dbe3a..a13863ae 100644 --- a/src/lib/Content/View/Builder/ContentEditViewBuilder.php +++ b/src/lib/Content/View/Builder/ContentEditViewBuilder.php @@ -223,5 +223,3 @@ private function resolveLocation(array $parameters): ?Location return null; } } - -class_alias(ContentEditViewBuilder::class, 'EzSystems\EzPlatformContentForms\Content\View\Builder\ContentEditViewBuilder'); diff --git a/src/lib/Content/View/ContentCreateDraftView.php b/src/lib/Content/View/ContentCreateDraftView.php index f2910167..1b78939f 100644 --- a/src/lib/Content/View/ContentCreateDraftView.php +++ b/src/lib/Content/View/ContentCreateDraftView.php @@ -14,5 +14,3 @@ class ContentCreateDraftView extends BaseView implements View { } - -class_alias(ContentCreateDraftView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentCreateDraftView'); diff --git a/src/lib/Content/View/ContentCreateSuccessView.php b/src/lib/Content/View/ContentCreateSuccessView.php index 47d50204..ce2318a9 100644 --- a/src/lib/Content/View/ContentCreateSuccessView.php +++ b/src/lib/Content/View/ContentCreateSuccessView.php @@ -48,5 +48,3 @@ public function getLocation(): ?Location return $this->location; } } - -class_alias(ContentCreateSuccessView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentCreateSuccessView'); diff --git a/src/lib/Content/View/ContentCreateView.php b/src/lib/Content/View/ContentCreateView.php index a3a5b53d..4d4ba1cb 100644 --- a/src/lib/Content/View/ContentCreateView.php +++ b/src/lib/Content/View/ContentCreateView.php @@ -93,5 +93,3 @@ public function setForm(FormInterface $form) $this->form = $form; } } - -class_alias(ContentCreateView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentCreateView'); diff --git a/src/lib/Content/View/ContentEditSuccessView.php b/src/lib/Content/View/ContentEditSuccessView.php index 81fb544a..009e7353 100644 --- a/src/lib/Content/View/ContentEditSuccessView.php +++ b/src/lib/Content/View/ContentEditSuccessView.php @@ -48,5 +48,3 @@ public function getLocation(): ?Location return $this->location; } } - -class_alias(ContentEditSuccessView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentEditSuccessView'); diff --git a/src/lib/Content/View/ContentEditView.php b/src/lib/Content/View/ContentEditView.php index 0611c295..8dbcd7c7 100644 --- a/src/lib/Content/View/ContentEditView.php +++ b/src/lib/Content/View/ContentEditView.php @@ -96,5 +96,3 @@ public function setForm(FormInterface $form) $this->form = $form; } } - -class_alias(ContentEditView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentEditView'); diff --git a/src/lib/Content/View/ContentTypeValueView.php b/src/lib/Content/View/ContentTypeValueView.php index e105e875..08871d97 100644 --- a/src/lib/Content/View/ContentTypeValueView.php +++ b/src/lib/Content/View/ContentTypeValueView.php @@ -22,5 +22,3 @@ interface ContentTypeValueView */ public function getContentType(): ContentType; } - -class_alias(ContentTypeValueView::class, 'EzSystems\EzPlatformContentForms\Content\View\ContentTypeValueView'); diff --git a/src/lib/Content/View/Filter/ContentCreateViewFilter.php b/src/lib/Content/View/Filter/ContentCreateViewFilter.php index fff1bcf7..2fa6d35a 100644 --- a/src/lib/Content/View/Filter/ContentCreateViewFilter.php +++ b/src/lib/Content/View/Filter/ContentCreateViewFilter.php @@ -136,5 +136,3 @@ private function resolveContentCreateForm( ]); } } - -class_alias(ContentCreateViewFilter::class, 'EzSystems\EzPlatformContentForms\Content\View\Filter\ContentCreateViewFilter'); diff --git a/src/lib/Content/View/Filter/ContentEditViewFilter.php b/src/lib/Content/View/Filter/ContentEditViewFilter.php index ab009b0a..e8a202d1 100644 --- a/src/lib/Content/View/Filter/ContentEditViewFilter.php +++ b/src/lib/Content/View/Filter/ContentEditViewFilter.php @@ -169,5 +169,3 @@ private function resolveContentEditForm( ); } } - -class_alias(ContentEditViewFilter::class, 'EzSystems\EzPlatformContentForms\Content\View\Filter\ContentEditViewFilter'); diff --git a/src/lib/Content/View/Provider/ContentCreateView/Configured.php b/src/lib/Content/View/Provider/ContentCreateView/Configured.php index 3907ceb6..59842a89 100644 --- a/src/lib/Content/View/Provider/ContentCreateView/Configured.php +++ b/src/lib/Content/View/Provider/ContentCreateView/Configured.php @@ -65,5 +65,3 @@ protected function buildContentCreateView(array $viewConfig): ContentCreateView return $view; } } - -class_alias(Configured::class, 'EzSystems\EzPlatformContentForms\Content\View\Provider\ContentCreateView\Configured'); diff --git a/src/lib/Content/View/Provider/ContentEditView/Configured.php b/src/lib/Content/View/Provider/ContentEditView/Configured.php index 8191cec8..3ed09718 100644 --- a/src/lib/Content/View/Provider/ContentEditView/Configured.php +++ b/src/lib/Content/View/Provider/ContentEditView/Configured.php @@ -65,5 +65,3 @@ protected function buildContentEditView(array $viewConfig): ContentEditView return $view; } } - -class_alias(Configured::class, 'EzSystems\EzPlatformContentForms\Content\View\Provider\ContentEditView\Configured'); diff --git a/src/lib/Data/Content/ContentCreateData.php b/src/lib/Data/Content/ContentCreateData.php index 6229ec4f..bdb7bcc0 100644 --- a/src/lib/Data/Content/ContentCreateData.php +++ b/src/lib/Data/Content/ContentCreateData.php @@ -48,5 +48,3 @@ public function addLocationStruct(LocationCreateStruct $locationStruct) $this->locationStructs[] = $locationStruct; } } - -class_alias(ContentCreateData::class, 'EzSystems\EzPlatformContentForms\Data\Content\ContentCreateData'); diff --git a/src/lib/Data/Content/ContentData.php b/src/lib/Data/Content/ContentData.php index c176e726..923f265c 100644 --- a/src/lib/Data/Content/ContentData.php +++ b/src/lib/Data/Content/ContentData.php @@ -22,5 +22,3 @@ public function addFieldData(FieldData $fieldData) $this->fieldsData[$fieldData->fieldDefinition->identifier] = $fieldData; } } - -class_alias(ContentData::class, 'EzSystems\EzPlatformContentForms\Data\Content\ContentData'); diff --git a/src/lib/Data/Content/ContentUpdateData.php b/src/lib/Data/Content/ContentUpdateData.php index 86fa84b0..e7084af8 100644 --- a/src/lib/Data/Content/ContentUpdateData.php +++ b/src/lib/Data/Content/ContentUpdateData.php @@ -26,5 +26,3 @@ public function isNew() return false; } } - -class_alias(ContentUpdateData::class, 'EzSystems\EzPlatformContentForms\Data\Content\ContentUpdateData'); diff --git a/src/lib/Data/Content/CreateContentDraftData.php b/src/lib/Data/Content/CreateContentDraftData.php index beb3a09b..6002e9bd 100644 --- a/src/lib/Data/Content/CreateContentDraftData.php +++ b/src/lib/Data/Content/CreateContentDraftData.php @@ -20,5 +20,3 @@ class CreateContentDraftData extends ValueObject public $toLanguage; } - -class_alias(CreateContentDraftData::class, 'EzSystems\EzPlatformContentForms\Data\Content\CreateContentDraftData'); diff --git a/src/lib/Data/ContentTranslationData.php b/src/lib/Data/ContentTranslationData.php index 5b40f0e1..2e056b23 100644 --- a/src/lib/Data/ContentTranslationData.php +++ b/src/lib/Data/ContentTranslationData.php @@ -24,5 +24,3 @@ public function isNew(): bool return false; } } - -class_alias(ContentTranslationData::class, 'EzSystems\EzPlatformContentForms\Data\ContentTranslationData'); diff --git a/src/lib/Data/Mapper/ContentCreateMapper.php b/src/lib/Data/Mapper/ContentCreateMapper.php index 597b113b..cae8ef2d 100644 --- a/src/lib/Data/Mapper/ContentCreateMapper.php +++ b/src/lib/Data/Mapper/ContentCreateMapper.php @@ -56,5 +56,3 @@ private function configureOptions(OptionsResolver $optionsResolver) ->setAllowedTypes('parentLocation', '\\Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\LocationCreateStruct'); } } - -class_alias(ContentCreateMapper::class, 'EzSystems\EzPlatformContentForms\Data\Mapper\ContentCreateMapper'); diff --git a/src/lib/Data/Mapper/ContentUpdateMapper.php b/src/lib/Data/Mapper/ContentUpdateMapper.php index ac7b1e5d..bdb6e0e1 100644 --- a/src/lib/Data/Mapper/ContentUpdateMapper.php +++ b/src/lib/Data/Mapper/ContentUpdateMapper.php @@ -66,5 +66,3 @@ private function configureOptions(OptionsResolver $optionsResolver) ->setDefault('currentFields', []); } } - -class_alias(ContentUpdateMapper::class, 'EzSystems\EzPlatformContentForms\Data\Mapper\ContentUpdateMapper'); diff --git a/src/lib/Data/Mapper/FormDataMapperInterface.php b/src/lib/Data/Mapper/FormDataMapperInterface.php index 9db7b7c3..2dad4d5c 100644 --- a/src/lib/Data/Mapper/FormDataMapperInterface.php +++ b/src/lib/Data/Mapper/FormDataMapperInterface.php @@ -25,5 +25,3 @@ interface FormDataMapperInterface */ public function mapToFormData(ValueObject $repositoryValueObject, array $params = []); } - -class_alias(FormDataMapperInterface::class, 'EzSystems\EzPlatformContentForms\Data\Mapper\FormDataMapperInterface'); diff --git a/src/lib/Data/Mapper/UserCreateMapper.php b/src/lib/Data/Mapper/UserCreateMapper.php index 522d1cb9..5d01c9b1 100644 --- a/src/lib/Data/Mapper/UserCreateMapper.php +++ b/src/lib/Data/Mapper/UserCreateMapper.php @@ -60,5 +60,3 @@ private function configureOptions(OptionsResolver $optionsResolver): void $optionsResolver->setRequired('mainLanguageCode'); } } - -class_alias(UserCreateMapper::class, 'EzSystems\EzPlatformContentForms\Data\Mapper\UserCreateMapper'); diff --git a/src/lib/Data/Mapper/UserUpdateMapper.php b/src/lib/Data/Mapper/UserUpdateMapper.php index 5b9f7784..2afc24db 100644 --- a/src/lib/Data/Mapper/UserUpdateMapper.php +++ b/src/lib/Data/Mapper/UserUpdateMapper.php @@ -73,5 +73,3 @@ private function configureOptions(OptionsResolver $optionsResolver) $optionsResolver->setRequired(['languageCode']); } } - -class_alias(UserUpdateMapper::class, 'EzSystems\EzPlatformContentForms\Data\Mapper\UserUpdateMapper'); diff --git a/src/lib/Data/NewnessCheckable.php b/src/lib/Data/NewnessCheckable.php index 0bd8efde..f6f8de5d 100644 --- a/src/lib/Data/NewnessCheckable.php +++ b/src/lib/Data/NewnessCheckable.php @@ -17,5 +17,3 @@ interface NewnessCheckable */ public function isNew(); } - -class_alias(NewnessCheckable::class, 'EzSystems\EzPlatformContentForms\Data\NewnessCheckable'); diff --git a/src/lib/Data/NewnessChecker.php b/src/lib/Data/NewnessChecker.php index ac3da4ab..33241e7d 100644 --- a/src/lib/Data/NewnessChecker.php +++ b/src/lib/Data/NewnessChecker.php @@ -31,5 +31,3 @@ public function isNew() */ abstract protected function getIdentifierValue(); } - -class_alias(NewnessChecker::class, 'EzSystems\EzPlatformContentForms\Data\NewnessChecker'); diff --git a/src/lib/Data/User/UserAccountFieldData.php b/src/lib/Data/User/UserAccountFieldData.php index c72df58e..2ff48bd5 100644 --- a/src/lib/Data/User/UserAccountFieldData.php +++ b/src/lib/Data/User/UserAccountFieldData.php @@ -42,5 +42,3 @@ public function __construct($username, $password, $email, $enabled = true) $this->enabled = $enabled; } } - -class_alias(UserAccountFieldData::class, 'EzSystems\EzPlatformContentForms\Data\User\UserAccountFieldData'); diff --git a/src/lib/Data/User/UserCreateData.php b/src/lib/Data/User/UserCreateData.php index fe8e2a6c..04fdb28e 100644 --- a/src/lib/Data/User/UserCreateData.php +++ b/src/lib/Data/User/UserCreateData.php @@ -82,5 +82,3 @@ public function setRoleLimitation(?RoleLimitation $roleLimitation): void $this->roleLimitation = $roleLimitation; } } - -class_alias(UserCreateData::class, 'EzSystems\EzPlatformContentForms\Data\User\UserCreateData'); diff --git a/src/lib/Data/User/UserUpdateData.php b/src/lib/Data/User/UserUpdateData.php index d7b3f63d..a7bcf96d 100644 --- a/src/lib/Data/User/UserUpdateData.php +++ b/src/lib/Data/User/UserUpdateData.php @@ -35,5 +35,3 @@ public function isNew() return false; } } - -class_alias(UserUpdateData::class, 'EzSystems\EzPlatformContentForms\Data\User\UserUpdateData'); diff --git a/src/lib/Event/ContentCreateFieldOptionsEvent.php b/src/lib/Event/ContentCreateFieldOptionsEvent.php index ac0d7ac3..2f177f02 100644 --- a/src/lib/Event/ContentCreateFieldOptionsEvent.php +++ b/src/lib/Event/ContentCreateFieldOptionsEvent.php @@ -74,5 +74,3 @@ public function getOption(string $option) return $this->options[$option] ?? null; } } - -class_alias(ContentCreateFieldOptionsEvent::class, 'EzSystems\EzPlatformContentForms\Event\ContentCreateFieldOptionsEvent'); diff --git a/src/lib/Event/ContentFormEvents.php b/src/lib/Event/ContentFormEvents.php index 62226a2a..dee2d841 100644 --- a/src/lib/Event/ContentFormEvents.php +++ b/src/lib/Event/ContentFormEvents.php @@ -75,5 +75,3 @@ final class ContentFormEvents */ public const CONTENT_CREATE_FIELD_OPTIONS = 'content.create.field.options'; } - -class_alias(ContentFormEvents::class, 'EzSystems\EzPlatformContentForms\Event\ContentFormEvents'); diff --git a/src/lib/Event/ContentUpdateFieldOptionsEvent.php b/src/lib/Event/ContentUpdateFieldOptionsEvent.php index a17dfb1d..ad96c73c 100644 --- a/src/lib/Event/ContentUpdateFieldOptionsEvent.php +++ b/src/lib/Event/ContentUpdateFieldOptionsEvent.php @@ -85,5 +85,3 @@ public function getOption(string $option) return $this->options[$option] ?? null; } } - -class_alias(ContentUpdateFieldOptionsEvent::class, 'EzSystems\EzPlatformContentForms\Event\ContentUpdateFieldOptionsEvent'); diff --git a/src/lib/Event/FormActionEvent.php b/src/lib/Event/FormActionEvent.php index 5a507747..e28f1d07 100644 --- a/src/lib/Event/FormActionEvent.php +++ b/src/lib/Event/FormActionEvent.php @@ -164,5 +164,3 @@ public function setPayload(string $name, $payload): void $this->payloads[$name] = $payload; } } - -class_alias(FormActionEvent::class, 'EzSystems\EzPlatformContentForms\Event\FormActionEvent'); diff --git a/src/lib/EventListener/ViewTemplatesListener.php b/src/lib/EventListener/ViewTemplatesListener.php index 6d22e7f7..9e1df92f 100644 --- a/src/lib/EventListener/ViewTemplatesListener.php +++ b/src/lib/EventListener/ViewTemplatesListener.php @@ -65,5 +65,3 @@ private function getTemplatesMap(): array ]; } } - -class_alias(ViewTemplatesListener::class, 'EzSystems\EzPlatformContentForms\EventListener\ViewTemplatesListener'); diff --git a/src/lib/FieldType/DataTransformer/AbstractBinaryBaseTransformer.php b/src/lib/FieldType/DataTransformer/AbstractBinaryBaseTransformer.php index 80c1630a..6cfe316d 100644 --- a/src/lib/FieldType/DataTransformer/AbstractBinaryBaseTransformer.php +++ b/src/lib/FieldType/DataTransformer/AbstractBinaryBaseTransformer.php @@ -82,5 +82,3 @@ public function getReverseTransformedValue($value) return new $this->valueClass($properties); } } - -class_alias(AbstractBinaryBaseTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\AbstractBinaryBaseTransformer'); diff --git a/src/lib/FieldType/DataTransformer/AuthorValueTransformer.php b/src/lib/FieldType/DataTransformer/AuthorValueTransformer.php index 0bdb8d06..60afc2a7 100644 --- a/src/lib/FieldType/DataTransformer/AuthorValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/AuthorValueTransformer.php @@ -53,5 +53,3 @@ public function reverseTransform($value) return new Value($authors); } } - -class_alias(AuthorValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\AuthorValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/BinaryFileValueTransformer.php b/src/lib/FieldType/DataTransformer/BinaryFileValueTransformer.php index acf7ebb2..095960a8 100644 --- a/src/lib/FieldType/DataTransformer/BinaryFileValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/BinaryFileValueTransformer.php @@ -53,5 +53,3 @@ public function reverseTransform($value) return $valueObject; } } - -class_alias(BinaryFileValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\BinaryFileValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/DateTimeValueTransformer.php b/src/lib/FieldType/DataTransformer/DateTimeValueTransformer.php index 1b67b6bc..214bc9e1 100644 --- a/src/lib/FieldType/DataTransformer/DateTimeValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/DateTimeValueTransformer.php @@ -65,5 +65,3 @@ public function reverseTransform($value) return Value::fromTimestamp($value); } } - -class_alias(DateTimeValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\DateTimeValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/DateValueTransformer.php b/src/lib/FieldType/DataTransformer/DateValueTransformer.php index 1f293166..94da447c 100644 --- a/src/lib/FieldType/DataTransformer/DateValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/DateValueTransformer.php @@ -66,5 +66,3 @@ public function reverseTransform($value) return Value::fromTimestamp($value); } } - -class_alias(DateValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\DateValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/FieldValueTransformer.php b/src/lib/FieldType/DataTransformer/FieldValueTransformer.php index 31a863ab..a77cb759 100644 --- a/src/lib/FieldType/DataTransformer/FieldValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/FieldValueTransformer.php @@ -62,5 +62,3 @@ public function reverseTransform($value) return $this->fieldType->fromHash($value); } } - -class_alias(FieldValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\FieldValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/ImageAssetValueTransformer.php b/src/lib/FieldType/DataTransformer/ImageAssetValueTransformer.php index dbc54b96..94cb1696 100644 --- a/src/lib/FieldType/DataTransformer/ImageAssetValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/ImageAssetValueTransformer.php @@ -64,5 +64,3 @@ public function reverseTransform($value): ?Value return new Value($value['destinationContentId'], $value['alternativeText']); } } - -class_alias(ImageAssetValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\ImageAssetValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/ImageValueTransformer.php b/src/lib/FieldType/DataTransformer/ImageValueTransformer.php index 24541e03..a6095994 100644 --- a/src/lib/FieldType/DataTransformer/ImageValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/ImageValueTransformer.php @@ -59,5 +59,3 @@ public function reverseTransform($value) return $valueObject; } } - -class_alias(ImageValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\ImageValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/KeywordValueTransformer.php b/src/lib/FieldType/DataTransformer/KeywordValueTransformer.php index b77b052c..04a0a5fc 100644 --- a/src/lib/FieldType/DataTransformer/KeywordValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/KeywordValueTransformer.php @@ -34,5 +34,3 @@ public function reverseTransform($value) return new Value($value); } } - -class_alias(KeywordValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\KeywordValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/MediaValueTransformer.php b/src/lib/FieldType/DataTransformer/MediaValueTransformer.php index 41301e36..e56ba816 100644 --- a/src/lib/FieldType/DataTransformer/MediaValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/MediaValueTransformer.php @@ -65,5 +65,3 @@ public function reverseTransform($value) return $valueObject; } } - -class_alias(MediaValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\MediaValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/MultiSelectionValueTransformer.php b/src/lib/FieldType/DataTransformer/MultiSelectionValueTransformer.php index 6403a1a2..eb7d9e16 100644 --- a/src/lib/FieldType/DataTransformer/MultiSelectionValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/MultiSelectionValueTransformer.php @@ -38,5 +38,3 @@ public function reverseTransform($value) return new Value($value); } } - -class_alias(MultiSelectionValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\MultiSelectionValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/MultipleCountryValueTransformer.php b/src/lib/FieldType/DataTransformer/MultipleCountryValueTransformer.php index 1352f88d..9bca16e5 100644 --- a/src/lib/FieldType/DataTransformer/MultipleCountryValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/MultipleCountryValueTransformer.php @@ -53,5 +53,3 @@ public function reverseTransform($value) return new Value($transformedValue); } } - -class_alias(MultipleCountryValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\MultipleCountryValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/RelationListValueTransformer.php b/src/lib/FieldType/DataTransformer/RelationListValueTransformer.php index f78a2e01..d9f14e09 100644 --- a/src/lib/FieldType/DataTransformer/RelationListValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/RelationListValueTransformer.php @@ -42,5 +42,3 @@ public function reverseTransform($value) return new Value($destinationContentIds); } } - -class_alias(RelationListValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\RelationListValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/RelationValueTransformer.php b/src/lib/FieldType/DataTransformer/RelationValueTransformer.php index 32ed9aec..37c43ff0 100644 --- a/src/lib/FieldType/DataTransformer/RelationValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/RelationValueTransformer.php @@ -35,5 +35,3 @@ public function reverseTransform($value) return new Value($value); } } - -class_alias(RelationValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\RelationValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/SingleCountryValueTransformer.php b/src/lib/FieldType/DataTransformer/SingleCountryValueTransformer.php index 76838dfe..f793aaff 100644 --- a/src/lib/FieldType/DataTransformer/SingleCountryValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/SingleCountryValueTransformer.php @@ -62,5 +62,3 @@ public function reverseTransform($value) return new Value([$value => $this->countriesInfo[$value]]); } } - -class_alias(SingleCountryValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\SingleCountryValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/SingleSelectionValueTransformer.php b/src/lib/FieldType/DataTransformer/SingleSelectionValueTransformer.php index e85c00c4..e84060f6 100644 --- a/src/lib/FieldType/DataTransformer/SingleSelectionValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/SingleSelectionValueTransformer.php @@ -38,5 +38,3 @@ public function reverseTransform($value) return new Value([(int)$value]); } } - -class_alias(SingleSelectionValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\SingleSelectionValueTransformer'); diff --git a/src/lib/FieldType/DataTransformer/TimeValueTransformer.php b/src/lib/FieldType/DataTransformer/TimeValueTransformer.php index 6c815b34..f5d0a6c0 100644 --- a/src/lib/FieldType/DataTransformer/TimeValueTransformer.php +++ b/src/lib/FieldType/DataTransformer/TimeValueTransformer.php @@ -61,5 +61,3 @@ public function reverseTransform($value) return new Value($value); } } - -class_alias(TimeValueTransformer::class, 'EzSystems\EzPlatformContentForms\FieldType\DataTransformer\TimeValueTransformer'); diff --git a/src/lib/FieldType/FieldTypeFormMapperDispatcher.php b/src/lib/FieldType/FieldTypeFormMapperDispatcher.php index cb86deb5..5781d5ac 100644 --- a/src/lib/FieldType/FieldTypeFormMapperDispatcher.php +++ b/src/lib/FieldType/FieldTypeFormMapperDispatcher.php @@ -52,5 +52,3 @@ public function map(FormInterface $fieldForm, FieldData $data): void $this->mappers[$fieldTypeIdentifier]->mapFieldValueForm($fieldForm, $data); } } - -class_alias(FieldTypeFormMapperDispatcher::class, 'EzSystems\EzPlatformContentForms\FieldType\FieldTypeFormMapperDispatcher'); diff --git a/src/lib/FieldType/FieldTypeFormMapperDispatcherInterface.php b/src/lib/FieldType/FieldTypeFormMapperDispatcherInterface.php index b4c26474..0cb2daea 100644 --- a/src/lib/FieldType/FieldTypeFormMapperDispatcherInterface.php +++ b/src/lib/FieldType/FieldTypeFormMapperDispatcherInterface.php @@ -37,10 +37,3 @@ public function addMapper(FieldValueFormMapperInterface $mapper, string $fieldTy */ public function map(FormInterface $form, FieldData $data): void; } - -class_alias( - FieldTypeFormMapperDispatcherInterface::class, - \EzSystems\RepositoryForms\FieldType\FieldTypeFormMapperDispatcherInterface::class -); - -class_alias(FieldTypeFormMapperDispatcherInterface::class, 'EzSystems\EzPlatformContentForms\FieldType\FieldTypeFormMapperDispatcherInterface'); diff --git a/src/lib/FieldType/Mapper/AbstractRelationFormMapper.php b/src/lib/FieldType/Mapper/AbstractRelationFormMapper.php index 3666d2b8..a23a0dff 100644 --- a/src/lib/FieldType/Mapper/AbstractRelationFormMapper.php +++ b/src/lib/FieldType/Mapper/AbstractRelationFormMapper.php @@ -80,5 +80,3 @@ protected function loadDefaultLocationForSelection($defaultLocationId = null, ?L return null; } } - -class_alias(AbstractRelationFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\AbstractRelationFormMapper'); diff --git a/src/lib/FieldType/Mapper/AuthorFormMapper.php b/src/lib/FieldType/Mapper/AuthorFormMapper.php index 6649ce07..f34a2f9f 100644 --- a/src/lib/FieldType/Mapper/AuthorFormMapper.php +++ b/src/lib/FieldType/Mapper/AuthorFormMapper.php @@ -41,5 +41,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(AuthorFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\AuthorFormMapper'); diff --git a/src/lib/FieldType/Mapper/BinaryFileFormMapper.php b/src/lib/FieldType/Mapper/BinaryFileFormMapper.php index 3dfdd0ef..c3e86d96 100644 --- a/src/lib/FieldType/Mapper/BinaryFileFormMapper.php +++ b/src/lib/FieldType/Mapper/BinaryFileFormMapper.php @@ -49,5 +49,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(BinaryFileFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\BinaryFileFormMapper'); diff --git a/src/lib/FieldType/Mapper/CheckboxFormMapper.php b/src/lib/FieldType/Mapper/CheckboxFormMapper.php index c08f511b..775428c0 100644 --- a/src/lib/FieldType/Mapper/CheckboxFormMapper.php +++ b/src/lib/FieldType/Mapper/CheckboxFormMapper.php @@ -39,5 +39,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(CheckboxFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\CheckboxFormMapper'); diff --git a/src/lib/FieldType/Mapper/CountryFormMapper.php b/src/lib/FieldType/Mapper/CountryFormMapper.php index 95f69952..0e1c91e8 100644 --- a/src/lib/FieldType/Mapper/CountryFormMapper.php +++ b/src/lib/FieldType/Mapper/CountryFormMapper.php @@ -34,5 +34,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(CountryFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\CountryFormMapper'); diff --git a/src/lib/FieldType/Mapper/DateFormMapper.php b/src/lib/FieldType/Mapper/DateFormMapper.php index c02e6201..464dbbea 100644 --- a/src/lib/FieldType/Mapper/DateFormMapper.php +++ b/src/lib/FieldType/Mapper/DateFormMapper.php @@ -39,5 +39,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(DateFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\DateFormMapper'); diff --git a/src/lib/FieldType/Mapper/DateTimeFormMapper.php b/src/lib/FieldType/Mapper/DateTimeFormMapper.php index 7c54a3bf..fc9533d5 100644 --- a/src/lib/FieldType/Mapper/DateTimeFormMapper.php +++ b/src/lib/FieldType/Mapper/DateTimeFormMapper.php @@ -41,5 +41,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(DateTimeFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\DateTimeFormMapper'); diff --git a/src/lib/FieldType/Mapper/FloatFormMapper.php b/src/lib/FieldType/Mapper/FloatFormMapper.php index 9084c0df..a4d7c22f 100644 --- a/src/lib/FieldType/Mapper/FloatFormMapper.php +++ b/src/lib/FieldType/Mapper/FloatFormMapper.php @@ -42,5 +42,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(FloatFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\FloatFormMapper'); diff --git a/src/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapper.php b/src/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapper.php index ca63848c..6217a37a 100644 --- a/src/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapper.php +++ b/src/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapper.php @@ -83,5 +83,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(FormTypeBasedFieldValueFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\FormTypeBasedFieldValueFormMapper'); diff --git a/src/lib/FieldType/Mapper/ISBNFormMapper.php b/src/lib/FieldType/Mapper/ISBNFormMapper.php index 36fe5557..53a1fd54 100644 --- a/src/lib/FieldType/Mapper/ISBNFormMapper.php +++ b/src/lib/FieldType/Mapper/ISBNFormMapper.php @@ -36,5 +36,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(ISBNFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\ISBNFormMapper'); diff --git a/src/lib/FieldType/Mapper/ImageAssetFormMapper.php b/src/lib/FieldType/Mapper/ImageAssetFormMapper.php index 87ff1302..71ad8efa 100644 --- a/src/lib/FieldType/Mapper/ImageAssetFormMapper.php +++ b/src/lib/FieldType/Mapper/ImageAssetFormMapper.php @@ -56,5 +56,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data): vo ); } } - -class_alias(ImageAssetFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\ImageAssetFormMapper'); diff --git a/src/lib/FieldType/Mapper/ImageFormMapper.php b/src/lib/FieldType/Mapper/ImageFormMapper.php index 5f638895..c26474b3 100644 --- a/src/lib/FieldType/Mapper/ImageFormMapper.php +++ b/src/lib/FieldType/Mapper/ImageFormMapper.php @@ -51,5 +51,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(ImageFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\ImageFormMapper'); diff --git a/src/lib/FieldType/Mapper/IntegerFormMapper.php b/src/lib/FieldType/Mapper/IntegerFormMapper.php index 710aa1ff..4d73559b 100644 --- a/src/lib/FieldType/Mapper/IntegerFormMapper.php +++ b/src/lib/FieldType/Mapper/IntegerFormMapper.php @@ -42,5 +42,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(IntegerFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\IntegerFormMapper'); diff --git a/src/lib/FieldType/Mapper/KeywordFormMapper.php b/src/lib/FieldType/Mapper/KeywordFormMapper.php index 863a684c..f9bc2847 100644 --- a/src/lib/FieldType/Mapper/KeywordFormMapper.php +++ b/src/lib/FieldType/Mapper/KeywordFormMapper.php @@ -39,5 +39,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(KeywordFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\KeywordFormMapper'); diff --git a/src/lib/FieldType/Mapper/MapLocationFormMapper.php b/src/lib/FieldType/Mapper/MapLocationFormMapper.php index 2eefa689..1ed2a3cc 100644 --- a/src/lib/FieldType/Mapper/MapLocationFormMapper.php +++ b/src/lib/FieldType/Mapper/MapLocationFormMapper.php @@ -39,5 +39,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(MapLocationFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\MapLocationFormMapper'); diff --git a/src/lib/FieldType/Mapper/MediaFormMapper.php b/src/lib/FieldType/Mapper/MediaFormMapper.php index e5a904a6..8f3e046d 100644 --- a/src/lib/FieldType/Mapper/MediaFormMapper.php +++ b/src/lib/FieldType/Mapper/MediaFormMapper.php @@ -60,5 +60,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(MediaFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\MediaFormMapper'); diff --git a/src/lib/FieldType/Mapper/RelationFormMapper.php b/src/lib/FieldType/Mapper/RelationFormMapper.php index 99ca81f8..3fd84cfd 100644 --- a/src/lib/FieldType/Mapper/RelationFormMapper.php +++ b/src/lib/FieldType/Mapper/RelationFormMapper.php @@ -41,5 +41,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(RelationFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\RelationFormMapper'); diff --git a/src/lib/FieldType/Mapper/RelationListFormMapper.php b/src/lib/FieldType/Mapper/RelationListFormMapper.php index 5e5b4067..26b5a0bb 100644 --- a/src/lib/FieldType/Mapper/RelationListFormMapper.php +++ b/src/lib/FieldType/Mapper/RelationListFormMapper.php @@ -41,5 +41,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(RelationListFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\RelationListFormMapper'); diff --git a/src/lib/FieldType/Mapper/SelectionFormMapper.php b/src/lib/FieldType/Mapper/SelectionFormMapper.php index f6f3e2ed..1a7eec01 100644 --- a/src/lib/FieldType/Mapper/SelectionFormMapper.php +++ b/src/lib/FieldType/Mapper/SelectionFormMapper.php @@ -47,5 +47,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(SelectionFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\SelectionFormMapper'); diff --git a/src/lib/FieldType/Mapper/TextBlockFormMapper.php b/src/lib/FieldType/Mapper/TextBlockFormMapper.php index 4ac3ed9c..55aee1ec 100644 --- a/src/lib/FieldType/Mapper/TextBlockFormMapper.php +++ b/src/lib/FieldType/Mapper/TextBlockFormMapper.php @@ -40,5 +40,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(TextBlockFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\TextBlockFormMapper'); diff --git a/src/lib/FieldType/Mapper/TextLineFormMapper.php b/src/lib/FieldType/Mapper/TextLineFormMapper.php index 47dfef51..a68a9997 100644 --- a/src/lib/FieldType/Mapper/TextLineFormMapper.php +++ b/src/lib/FieldType/Mapper/TextLineFormMapper.php @@ -42,5 +42,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(TextLineFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\TextLineFormMapper'); diff --git a/src/lib/FieldType/Mapper/TimeFormMapper.php b/src/lib/FieldType/Mapper/TimeFormMapper.php index ca311a96..6ff91ae4 100644 --- a/src/lib/FieldType/Mapper/TimeFormMapper.php +++ b/src/lib/FieldType/Mapper/TimeFormMapper.php @@ -37,5 +37,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(TimeFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\TimeFormMapper'); diff --git a/src/lib/FieldType/Mapper/UrlFormMapper.php b/src/lib/FieldType/Mapper/UrlFormMapper.php index 0b200d73..15a81037 100644 --- a/src/lib/FieldType/Mapper/UrlFormMapper.php +++ b/src/lib/FieldType/Mapper/UrlFormMapper.php @@ -39,5 +39,3 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) ); } } - -class_alias(UrlFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\UrlFormMapper'); diff --git a/src/lib/FieldType/Mapper/UserAccountFieldValueFormMapper.php b/src/lib/FieldType/Mapper/UserAccountFieldValueFormMapper.php index 26f9d9b5..0269cab3 100644 --- a/src/lib/FieldType/Mapper/UserAccountFieldValueFormMapper.php +++ b/src/lib/FieldType/Mapper/UserAccountFieldValueFormMapper.php @@ -112,5 +112,3 @@ static function (UserAccountFieldData $submittedData) { ); } } - -class_alias(UserAccountFieldValueFormMapper::class, 'EzSystems\EzPlatformContentForms\FieldType\Mapper\UserAccountFieldValueFormMapper'); diff --git a/src/lib/Form/ActionDispatcher/AbstractActionDispatcher.php b/src/lib/Form/ActionDispatcher/AbstractActionDispatcher.php index 9d201f64..895c80f4 100644 --- a/src/lib/Form/ActionDispatcher/AbstractActionDispatcher.php +++ b/src/lib/Form/ActionDispatcher/AbstractActionDispatcher.php @@ -93,5 +93,3 @@ public function getResponse() return $this->response; } } - -class_alias(AbstractActionDispatcher::class, 'EzSystems\EzPlatformContentForms\Form\ActionDispatcher\AbstractActionDispatcher'); diff --git a/src/lib/Form/ActionDispatcher/ActionDispatcherInterface.php b/src/lib/Form/ActionDispatcher/ActionDispatcherInterface.php index 7a8221e3..3d46f340 100644 --- a/src/lib/Form/ActionDispatcher/ActionDispatcherInterface.php +++ b/src/lib/Form/ActionDispatcher/ActionDispatcherInterface.php @@ -38,5 +38,3 @@ public function dispatchFormAction(FormInterface $form, ValueObject $data, $acti */ public function getResponse(); } - -class_alias(ActionDispatcherInterface::class, 'EzSystems\EzPlatformContentForms\Form\ActionDispatcher\ActionDispatcherInterface'); diff --git a/src/lib/Form/ActionDispatcher/ContentDispatcher.php b/src/lib/Form/ActionDispatcher/ContentDispatcher.php index f9099201..e0f1ea16 100644 --- a/src/lib/Form/ActionDispatcher/ContentDispatcher.php +++ b/src/lib/Form/ActionDispatcher/ContentDispatcher.php @@ -26,5 +26,3 @@ protected function getActionEventBaseName() return ContentFormEvents::CONTENT_EDIT; } } - -class_alias(ContentDispatcher::class, 'EzSystems\EzPlatformContentForms\Form\ActionDispatcher\ContentDispatcher'); diff --git a/src/lib/Form/ActionDispatcher/UserDispatcher.php b/src/lib/Form/ActionDispatcher/UserDispatcher.php index 704fd7fb..29e624ea 100644 --- a/src/lib/Form/ActionDispatcher/UserDispatcher.php +++ b/src/lib/Form/ActionDispatcher/UserDispatcher.php @@ -17,5 +17,3 @@ protected function getActionEventBaseName() return ContentFormEvents::USER_EDIT; } } - -class_alias(UserDispatcher::class, 'EzSystems\EzPlatformContentForms\Form\ActionDispatcher\UserDispatcher'); diff --git a/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php b/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php index 978dbf41..639d557c 100644 --- a/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php +++ b/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php @@ -59,5 +59,3 @@ public function suppressValidationOnAutosaveDraft(PostSubmitEvent $event) } } } - -class_alias(SuppressValidationSubscriber::class, 'EzSystems\EzPlatformContentForms\Form\EventSubscriber\SuppressValidationSubscriber'); diff --git a/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php b/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php index 5909e7b0..834e35d0 100644 --- a/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php +++ b/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php @@ -108,5 +108,3 @@ private function handleUserUpdateData(UserUpdateData $data, $languageCode) } } } - -class_alias(UserFieldsSubscriber::class, 'EzSystems\EzPlatformContentForms\Form\EventSubscriber\UserFieldsSubscriber'); diff --git a/src/lib/Form/Processor/ContentFormProcessor.php b/src/lib/Form/Processor/ContentFormProcessor.php index 017734b4..dae39171 100644 --- a/src/lib/Form/Processor/ContentFormProcessor.php +++ b/src/lib/Form/Processor/ContentFormProcessor.php @@ -397,5 +397,3 @@ private function resolveLocation(Content $content, ?Location $referrerLocation, return $referrerLocation ?? $this->locationService->loadLocation($content->contentInfo->mainLocationId); } } - -class_alias(ContentFormProcessor::class, 'EzSystems\EzPlatformContentForms\Form\Processor\ContentFormProcessor'); diff --git a/src/lib/Form/Processor/SystemUrlRedirectProcessor.php b/src/lib/Form/Processor/SystemUrlRedirectProcessor.php index d267fe2b..a75a2921 100644 --- a/src/lib/Form/Processor/SystemUrlRedirectProcessor.php +++ b/src/lib/Form/Processor/SystemUrlRedirectProcessor.php @@ -106,5 +106,3 @@ private function resolveSystemUrlRedirect(FormActionEvent $event): void $event->setResponse(new RedirectResponse($this->urlAliasService->reverseLookup($location)->path)); } } - -class_alias(SystemUrlRedirectProcessor::class, 'EzSystems\EzPlatformContentForms\Form\Processor\SystemUrlRedirectProcessor'); diff --git a/src/lib/Form/Processor/User/UserCancelFormProcessor.php b/src/lib/Form/Processor/User/UserCancelFormProcessor.php index 0cb5204d..1afd24ea 100644 --- a/src/lib/Form/Processor/User/UserCancelFormProcessor.php +++ b/src/lib/Form/Processor/User/UserCancelFormProcessor.php @@ -54,5 +54,3 @@ public function processCancel(FormActionEvent $event) $event->setResponse($response); } } - -class_alias(UserCancelFormProcessor::class, 'EzSystems\EzPlatformContentForms\Form\Processor\User\UserCancelFormProcessor'); diff --git a/src/lib/Form/Processor/User/UserCreateFormProcessor.php b/src/lib/Form/Processor/User/UserCreateFormProcessor.php index 5da5242c..688b1798 100644 --- a/src/lib/Form/Processor/User/UserCreateFormProcessor.php +++ b/src/lib/Form/Processor/User/UserCreateFormProcessor.php @@ -82,5 +82,3 @@ private function setContentFields(UserCreateData $data, string $languageCode): v } } } - -class_alias(UserCreateFormProcessor::class, 'EzSystems\EzPlatformContentForms\Form\Processor\User\UserCreateFormProcessor'); diff --git a/src/lib/Form/Processor/User/UserUpdateFormProcessor.php b/src/lib/Form/Processor/User/UserUpdateFormProcessor.php index 4dc3b251..dc258fc4 100644 --- a/src/lib/Form/Processor/User/UserUpdateFormProcessor.php +++ b/src/lib/Form/Processor/User/UserUpdateFormProcessor.php @@ -86,5 +86,3 @@ private function setContentFields(UserUpdateData $data, string $languageCode): v } } } - -class_alias(UserUpdateFormProcessor::class, 'EzSystems\EzPlatformContentForms\Form\Processor\User\UserUpdateFormProcessor'); diff --git a/src/lib/Form/Transformer/JsonToArrayTransformer.php b/src/lib/Form/Transformer/JsonToArrayTransformer.php index 9ae6111a..20f52531 100644 --- a/src/lib/Form/Transformer/JsonToArrayTransformer.php +++ b/src/lib/Form/Transformer/JsonToArrayTransformer.php @@ -51,5 +51,3 @@ public function reverseTransform($value) return $decoded; } } - -class_alias(JsonToArrayTransformer::class, 'EzSystems\EzPlatformContentForms\Form\Transformer\JsonToArrayTransformer'); diff --git a/src/lib/Form/Type/Content/BaseContentType.php b/src/lib/Form/Type/Content/BaseContentType.php index cf2fdfce..2b547683 100644 --- a/src/lib/Form/Type/Content/BaseContentType.php +++ b/src/lib/Form/Type/Content/BaseContentType.php @@ -65,5 +65,3 @@ public function configureOptions(OptionsResolver $resolver) ->setRequired(['languageCode', 'mainLanguageCode']); } } - -class_alias(BaseContentType::class, 'EzSystems\EzPlatformContentForms\Form\Type\Content\BaseContentType'); diff --git a/src/lib/Form/Type/Content/ContentDraftCreateType.php b/src/lib/Form/Type/Content/ContentDraftCreateType.php index 1213b873..c943e525 100644 --- a/src/lib/Form/Type/Content/ContentDraftCreateType.php +++ b/src/lib/Form/Type/Content/ContentDraftCreateType.php @@ -73,5 +73,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_content']); } } - -class_alias(ContentDraftCreateType::class, 'EzSystems\EzPlatformContentForms\Form\Type\Content\ContentDraftCreateType'); diff --git a/src/lib/Form/Type/Content/ContentEditType.php b/src/lib/Form/Type/Content/ContentEditType.php index f0ed24d3..5e3fc57e 100644 --- a/src/lib/Form/Type/Content/ContentEditType.php +++ b/src/lib/Form/Type/Content/ContentEditType.php @@ -92,5 +92,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(ContentEditType::class, 'EzSystems\EzPlatformContentForms\Form\Type\Content\ContentEditType'); diff --git a/src/lib/Form/Type/Content/ContentFieldType.php b/src/lib/Form/Type/Content/ContentFieldType.php index b4a17f3e..6830b7c4 100644 --- a/src/lib/Form/Type/Content/ContentFieldType.php +++ b/src/lib/Form/Type/Content/ContentFieldType.php @@ -68,5 +68,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) }); } } - -class_alias(ContentFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\Content\ContentFieldType'); diff --git a/src/lib/Form/Type/Content/FieldCollectionType.php b/src/lib/Form/Type/Content/FieldCollectionType.php index 4873364b..1679c810 100644 --- a/src/lib/Form/Type/Content/FieldCollectionType.php +++ b/src/lib/Form/Type/Content/FieldCollectionType.php @@ -93,5 +93,3 @@ private function isContentUpdate(array $entryOptions): bool return !empty($entryOptions['content']) && !empty($entryOptions['contentUpdateStruct']); } } - -class_alias(FieldCollectionType::class, 'EzSystems\EzPlatformContentForms\Form\Type\Content\FieldCollectionType'); diff --git a/src/lib/Form/Type/FieldDefinition/User/PasswordConstraintCheckboxType.php b/src/lib/Form/Type/FieldDefinition/User/PasswordConstraintCheckboxType.php index 209fc05c..7376bfcd 100644 --- a/src/lib/Form/Type/FieldDefinition/User/PasswordConstraintCheckboxType.php +++ b/src/lib/Form/Type/FieldDefinition/User/PasswordConstraintCheckboxType.php @@ -64,5 +64,3 @@ private function toSnakeCase(string $string): string return strtolower(preg_replace('/[A-Z]/', '_\\0', lcfirst($string))); } } - -class_alias(PasswordConstraintCheckboxType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldDefinition\User\PasswordConstraintCheckboxType'); diff --git a/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php b/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php index d899f41b..7c266fb6 100644 --- a/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php +++ b/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php @@ -43,5 +43,3 @@ public function getParent() return CollectionType::class; } } - -class_alias(AuthorCollectionType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\Author\AuthorCollectionType'); diff --git a/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php b/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php index b7be47b6..5621e896 100644 --- a/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php +++ b/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php @@ -80,5 +80,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(AuthorEntryType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\Author\AuthorEntryType'); diff --git a/src/lib/Form/Type/FieldType/AuthorFieldType.php b/src/lib/Form/Type/FieldType/AuthorFieldType.php index 378df6e2..9adb46c2 100644 --- a/src/lib/Form/Type/FieldType/AuthorFieldType.php +++ b/src/lib/Form/Type/FieldType/AuthorFieldType.php @@ -157,5 +157,3 @@ private function fetchLoggedAuthor(): Author return $author; } } - -class_alias(AuthorFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\AuthorFieldType'); diff --git a/src/lib/Form/Type/FieldType/BinaryBaseFieldType.php b/src/lib/Form/Type/FieldType/BinaryBaseFieldType.php index 07454436..790fa03d 100644 --- a/src/lib/Form/Type/FieldType/BinaryBaseFieldType.php +++ b/src/lib/Form/Type/FieldType/BinaryBaseFieldType.php @@ -67,5 +67,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']); } } - -class_alias(BinaryBaseFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\BinaryBaseFieldType'); diff --git a/src/lib/Form/Type/FieldType/BinaryFileFieldType.php b/src/lib/Form/Type/FieldType/BinaryFileFieldType.php index c0f8adc8..4ef9b2c9 100644 --- a/src/lib/Form/Type/FieldType/BinaryFileFieldType.php +++ b/src/lib/Form/Type/FieldType/BinaryFileFieldType.php @@ -36,5 +36,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']); } } - -class_alias(BinaryFileFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\BinaryFileFieldType'); diff --git a/src/lib/Form/Type/FieldType/CheckboxFieldType.php b/src/lib/Form/Type/FieldType/CheckboxFieldType.php index 8205da5b..864f3d93 100644 --- a/src/lib/Form/Type/FieldType/CheckboxFieldType.php +++ b/src/lib/Form/Type/FieldType/CheckboxFieldType.php @@ -48,5 +48,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) ->addModelTransformer(new FieldValueTransformer($this->fieldTypeService->getFieldType('ezboolean'))); } } - -class_alias(CheckboxFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\CheckboxFieldType'); diff --git a/src/lib/Form/Type/FieldType/CountryFieldType.php b/src/lib/Form/Type/FieldType/CountryFieldType.php index 864a96ab..a8dc25bd 100644 --- a/src/lib/Form/Type/FieldType/CountryFieldType.php +++ b/src/lib/Form/Type/FieldType/CountryFieldType.php @@ -73,5 +73,3 @@ private function getCountryChoices(array $countriesInfo) return $choices; } } - -class_alias(CountryFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\CountryFieldType'); diff --git a/src/lib/Form/Type/FieldType/DateFieldType.php b/src/lib/Form/Type/FieldType/DateFieldType.php index fee2f38e..1fdfe4cb 100644 --- a/src/lib/Form/Type/FieldType/DateFieldType.php +++ b/src/lib/Form/Type/FieldType/DateFieldType.php @@ -58,5 +58,3 @@ public function buildView(FormView $view, FormInterface $form, array $options) $view->vars['isEditView'] = \in_array($request->attributes->get('_route'), self::EDIT_VIEWS); } } - -class_alias(DateFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\DateFieldType'); diff --git a/src/lib/Form/Type/FieldType/DateTimeFieldType.php b/src/lib/Form/Type/FieldType/DateTimeFieldType.php index 43427ee2..a9ca9569 100644 --- a/src/lib/Form/Type/FieldType/DateTimeFieldType.php +++ b/src/lib/Form/Type/FieldType/DateTimeFieldType.php @@ -54,5 +54,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('with_seconds', 'bool'); } } - -class_alias(DateTimeFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\DateTimeFieldType'); diff --git a/src/lib/Form/Type/FieldType/FloatFieldType.php b/src/lib/Form/Type/FieldType/FloatFieldType.php index 7d9fa946..ce4aa62b 100644 --- a/src/lib/Form/Type/FieldType/FloatFieldType.php +++ b/src/lib/Form/Type/FieldType/FloatFieldType.php @@ -75,5 +75,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('max', ['float', 'integer', 'null']); } } - -class_alias(FloatFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\FloatFieldType'); diff --git a/src/lib/Form/Type/FieldType/ISBNFieldType.php b/src/lib/Form/Type/FieldType/ISBNFieldType.php index 81d64202..b738d5ca 100644 --- a/src/lib/Form/Type/FieldType/ISBNFieldType.php +++ b/src/lib/Form/Type/FieldType/ISBNFieldType.php @@ -47,5 +47,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addModelTransformer(new FieldValueTransformer($this->fieldTypeService->getFieldType('ezisbn'))); } } - -class_alias(ISBNFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\ISBNFieldType'); diff --git a/src/lib/Form/Type/FieldType/ImageAssetFieldType.php b/src/lib/Form/Type/FieldType/ImageAssetFieldType.php index ce72fa1e..11aacf44 100644 --- a/src/lib/Form/Type/FieldType/ImageAssetFieldType.php +++ b/src/lib/Form/Type/FieldType/ImageAssetFieldType.php @@ -153,5 +153,3 @@ private function getMimeTypesExtensions(array $mimeTypes): array return $extensions; } } - -class_alias(ImageAssetFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\ImageAssetFieldType'); diff --git a/src/lib/Form/Type/FieldType/ImageFieldType.php b/src/lib/Form/Type/FieldType/ImageFieldType.php index 9f0c25ab..98550cf0 100644 --- a/src/lib/Form/Type/FieldType/ImageFieldType.php +++ b/src/lib/Form/Type/FieldType/ImageFieldType.php @@ -100,5 +100,3 @@ private function getMimeTypesExtensions(array $mimeTypes): array return $extensions; } } - -class_alias(ImageFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\ImageFieldType'); diff --git a/src/lib/Form/Type/FieldType/IntegerFieldType.php b/src/lib/Form/Type/FieldType/IntegerFieldType.php index 4bfca8aa..4e7acf69 100644 --- a/src/lib/Form/Type/FieldType/IntegerFieldType.php +++ b/src/lib/Form/Type/FieldType/IntegerFieldType.php @@ -83,5 +83,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('max', ['integer', 'null']); } } - -class_alias(IntegerFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\IntegerFieldType'); diff --git a/src/lib/Form/Type/FieldType/KeywordFieldType.php b/src/lib/Form/Type/FieldType/KeywordFieldType.php index 115b2b05..5b7faf7d 100644 --- a/src/lib/Form/Type/FieldType/KeywordFieldType.php +++ b/src/lib/Form/Type/FieldType/KeywordFieldType.php @@ -38,5 +38,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addModelTransformer(new KeywordValueTransformer()); } } - -class_alias(KeywordFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\KeywordFieldType'); diff --git a/src/lib/Form/Type/FieldType/MapLocationFieldType.php b/src/lib/Form/Type/FieldType/MapLocationFieldType.php index 73c6df03..9f55c4dc 100644 --- a/src/lib/Form/Type/FieldType/MapLocationFieldType.php +++ b/src/lib/Form/Type/FieldType/MapLocationFieldType.php @@ -98,5 +98,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']); } } - -class_alias(MapLocationFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\MapLocationFieldType'); diff --git a/src/lib/Form/Type/FieldType/MediaFieldType.php b/src/lib/Form/Type/FieldType/MediaFieldType.php index 08ce6622..9483e18f 100644 --- a/src/lib/Form/Type/FieldType/MediaFieldType.php +++ b/src/lib/Form/Type/FieldType/MediaFieldType.php @@ -95,5 +95,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefaults(['translation_domain' => 'ibexa_content_forms_fieldtype']); } } - -class_alias(MediaFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\MediaFieldType'); diff --git a/src/lib/Form/Type/FieldType/RelationFieldType.php b/src/lib/Form/Type/FieldType/RelationFieldType.php index 11dbcc2c..fafe5eb2 100644 --- a/src/lib/Form/Type/FieldType/RelationFieldType.php +++ b/src/lib/Form/Type/FieldType/RelationFieldType.php @@ -111,5 +111,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('location', ['null', Location::class]); } } - -class_alias(RelationFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\RelationFieldType'); diff --git a/src/lib/Form/Type/FieldType/RelationListFieldType.php b/src/lib/Form/Type/FieldType/RelationListFieldType.php index 8c570f53..c16c4ea5 100644 --- a/src/lib/Form/Type/FieldType/RelationListFieldType.php +++ b/src/lib/Form/Type/FieldType/RelationListFieldType.php @@ -112,5 +112,3 @@ public function configureOptions(OptionsResolver $resolver): void $resolver->setAllowedTypes('location', ['null', Location::class]); } } - -class_alias(RelationListFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\RelationListFieldType'); diff --git a/src/lib/Form/Type/FieldType/SelectionFieldType.php b/src/lib/Form/Type/FieldType/SelectionFieldType.php index fa8e1658..28877f79 100644 --- a/src/lib/Form/Type/FieldType/SelectionFieldType.php +++ b/src/lib/Form/Type/FieldType/SelectionFieldType.php @@ -51,5 +51,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(SelectionFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\SelectionFieldType'); diff --git a/src/lib/Form/Type/FieldType/TextBlockFieldType.php b/src/lib/Form/Type/FieldType/TextBlockFieldType.php index e85252cc..74cd1537 100644 --- a/src/lib/Form/Type/FieldType/TextBlockFieldType.php +++ b/src/lib/Form/Type/FieldType/TextBlockFieldType.php @@ -64,5 +64,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('rows', ['integer']); } } - -class_alias(TextBlockFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\TextBlockFieldType'); diff --git a/src/lib/Form/Type/FieldType/TextLineFieldType.php b/src/lib/Form/Type/FieldType/TextLineFieldType.php index 23e8f6bc..b55f413e 100644 --- a/src/lib/Form/Type/FieldType/TextLineFieldType.php +++ b/src/lib/Form/Type/FieldType/TextLineFieldType.php @@ -75,5 +75,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('max', ['integer', 'null']); } } - -class_alias(TextLineFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\TextLineFieldType'); diff --git a/src/lib/Form/Type/FieldType/TimeFieldType.php b/src/lib/Form/Type/FieldType/TimeFieldType.php index 148cb3d2..24dc3ae2 100644 --- a/src/lib/Form/Type/FieldType/TimeFieldType.php +++ b/src/lib/Form/Type/FieldType/TimeFieldType.php @@ -54,5 +54,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedTypes('with_seconds', 'bool'); } } - -class_alias(TimeFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\TimeFieldType'); diff --git a/src/lib/Form/Type/FieldType/UrlFieldType.php b/src/lib/Form/Type/FieldType/UrlFieldType.php index 47fdf990..246f032b 100644 --- a/src/lib/Form/Type/FieldType/UrlFieldType.php +++ b/src/lib/Form/Type/FieldType/UrlFieldType.php @@ -69,5 +69,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(UrlFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\UrlFieldType'); diff --git a/src/lib/Form/Type/FieldType/UserAccountFieldType.php b/src/lib/Form/Type/FieldType/UserAccountFieldType.php index d41c9a4b..5079ae67 100644 --- a/src/lib/Form/Type/FieldType/UserAccountFieldType.php +++ b/src/lib/Form/Type/FieldType/UserAccountFieldType.php @@ -75,5 +75,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedValues('intent', ['register', 'create', 'update', 'invitation']); } } - -class_alias(UserAccountFieldType::class, 'EzSystems\EzPlatformContentForms\Form\Type\FieldType\UserAccountFieldType'); diff --git a/src/lib/Form/Type/JsonArrayType.php b/src/lib/Form/Type/JsonArrayType.php index f5d7ba62..a0811980 100644 --- a/src/lib/Form/Type/JsonArrayType.php +++ b/src/lib/Form/Type/JsonArrayType.php @@ -25,5 +25,3 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addModelTransformer(new JsonToArrayTransformer()); } } - -class_alias(JsonArrayType::class, 'EzSystems\EzPlatformContentForms\Form\Type\JsonArrayType'); diff --git a/src/lib/Form/Type/LocationType.php b/src/lib/Form/Type/LocationType.php index 98d97388..35844214 100644 --- a/src/lib/Form/Type/LocationType.php +++ b/src/lib/Form/Type/LocationType.php @@ -54,5 +54,3 @@ public function getParent(): string return HiddenType::class; } } - -class_alias(LocationType::class, 'EzSystems\EzPlatformContentForms\Form\Type\LocationType'); diff --git a/src/lib/Form/Type/SwitcherType.php b/src/lib/Form/Type/SwitcherType.php index 3856534d..99897964 100644 --- a/src/lib/Form/Type/SwitcherType.php +++ b/src/lib/Form/Type/SwitcherType.php @@ -34,5 +34,3 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setDefault('required', false); } } - -class_alias(SwitcherType::class, 'EzSystems\EzPlatformContentForms\Form\Type\SwitcherType'); diff --git a/src/lib/Form/Type/User/BaseUserType.php b/src/lib/Form/Type/User/BaseUserType.php index bfc24aea..01893053 100644 --- a/src/lib/Form/Type/User/BaseUserType.php +++ b/src/lib/Form/Type/User/BaseUserType.php @@ -63,5 +63,3 @@ public function configureOptions(OptionsResolver $resolver) ->setAllowedValues('intent', ['update', 'create', 'register']); } } - -class_alias(BaseUserType::class, 'EzSystems\EzPlatformContentForms\Form\Type\User\BaseUserType'); diff --git a/src/lib/Form/Type/User/UserCreateType.php b/src/lib/Form/Type/User/UserCreateType.php index 3d9f8b44..1d578e58 100644 --- a/src/lib/Form/Type/User/UserCreateType.php +++ b/src/lib/Form/Type/User/UserCreateType.php @@ -53,5 +53,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(UserCreateType::class, 'EzSystems\EzPlatformContentForms\Form\Type\User\UserCreateType'); diff --git a/src/lib/Form/Type/User/UserUpdateType.php b/src/lib/Form/Type/User/UserUpdateType.php index 5b3af50d..9e0e36a9 100644 --- a/src/lib/Form/Type/User/UserUpdateType.php +++ b/src/lib/Form/Type/User/UserUpdateType.php @@ -54,5 +54,3 @@ public function configureOptions(OptionsResolver $resolver) ]); } } - -class_alias(UserUpdateType::class, 'EzSystems\EzPlatformContentForms\Form\Type\User\UserUpdateType'); diff --git a/src/lib/User/View/UserCreateView.php b/src/lib/User/View/UserCreateView.php index 8c47ce5b..686af19e 100644 --- a/src/lib/User/View/UserCreateView.php +++ b/src/lib/User/View/UserCreateView.php @@ -13,5 +13,3 @@ class UserCreateView extends BaseView { } - -class_alias(UserCreateView::class, 'EzSystems\EzPlatformContentForms\User\View\UserCreateView'); diff --git a/src/lib/User/View/UserRegisterConfirmView.php b/src/lib/User/View/UserRegisterConfirmView.php index 6136a030..82074c38 100644 --- a/src/lib/User/View/UserRegisterConfirmView.php +++ b/src/lib/User/View/UserRegisterConfirmView.php @@ -16,5 +16,3 @@ class UserRegisterConfirmView extends BaseRegisterConfirmView { } - -class_alias(UserRegisterConfirmView::class, 'EzSystems\EzPlatformContentForms\User\View\UserRegisterConfirmView'); diff --git a/src/lib/User/View/UserRegisterFormView.php b/src/lib/User/View/UserRegisterFormView.php index 530dc7fa..19ff7539 100644 --- a/src/lib/User/View/UserRegisterFormView.php +++ b/src/lib/User/View/UserRegisterFormView.php @@ -16,5 +16,3 @@ class UserRegisterFormView extends BaseUserRegisterFormView { } - -class_alias(UserRegisterFormView::class, 'EzSystems\EzPlatformContentForms\User\View\UserRegisterFormView'); diff --git a/src/lib/User/View/UserUpdateView.php b/src/lib/User/View/UserUpdateView.php index a08efa02..0eaca3c4 100644 --- a/src/lib/User/View/UserUpdateView.php +++ b/src/lib/User/View/UserUpdateView.php @@ -13,5 +13,3 @@ class UserUpdateView extends BaseView { } - -class_alias(UserUpdateView::class, 'EzSystems\EzPlatformContentForms\User\View\UserUpdateView'); diff --git a/src/lib/Validator/Constraints/FieldTypeValidator.php b/src/lib/Validator/Constraints/FieldTypeValidator.php index fd0e430d..ea0b49ec 100644 --- a/src/lib/Validator/Constraints/FieldTypeValidator.php +++ b/src/lib/Validator/Constraints/FieldTypeValidator.php @@ -60,5 +60,3 @@ private function createValidationErrorProcessor(): ValidationErrorsProcessor }); } } - -class_alias(FieldTypeValidator::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\FieldTypeValidator'); diff --git a/src/lib/Validator/Constraints/FieldValue.php b/src/lib/Validator/Constraints/FieldValue.php index df7dd73f..46824d01 100644 --- a/src/lib/Validator/Constraints/FieldValue.php +++ b/src/lib/Validator/Constraints/FieldValue.php @@ -27,5 +27,3 @@ public function validatedBy() return FieldValueValidator::class; } } - -class_alias(FieldValue::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\FieldValue'); diff --git a/src/lib/Validator/Constraints/FieldValueValidator.php b/src/lib/Validator/Constraints/FieldValueValidator.php index 2a70b93f..5ce59d9a 100644 --- a/src/lib/Validator/Constraints/FieldValueValidator.php +++ b/src/lib/Validator/Constraints/FieldValueValidator.php @@ -95,5 +95,3 @@ protected function generatePropertyPath($errorIndex, $errorTarget): string : PropertyPath::append($basePath, $errorTarget); } } - -class_alias(FieldValueValidator::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\FieldValueValidator'); diff --git a/src/lib/Validator/Constraints/FieldValueValidatorMessages.php b/src/lib/Validator/Constraints/FieldValueValidatorMessages.php index 41a95a2f..2036ffcf 100644 --- a/src/lib/Validator/Constraints/FieldValueValidatorMessages.php +++ b/src/lib/Validator/Constraints/FieldValueValidatorMessages.php @@ -31,5 +31,3 @@ public static function getTranslationMessages(): array ]; } } - -class_alias(FieldValueValidatorMessages::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\FieldValueValidatorMessages'); diff --git a/src/lib/Validator/Constraints/Password.php b/src/lib/Validator/Constraints/Password.php index 8d26be82..9b497988 100644 --- a/src/lib/Validator/Constraints/Password.php +++ b/src/lib/Validator/Constraints/Password.php @@ -29,5 +29,3 @@ public function getTargets(): array return [self::CLASS_CONSTRAINT, self::PROPERTY_CONSTRAINT]; } } - -class_alias(Password::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\Password'); diff --git a/src/lib/Validator/Constraints/PasswordValidator.php b/src/lib/Validator/Constraints/PasswordValidator.php index 18a2bae2..d43aa519 100644 --- a/src/lib/Validator/Constraints/PasswordValidator.php +++ b/src/lib/Validator/Constraints/PasswordValidator.php @@ -55,5 +55,3 @@ protected function createValidationErrorsProcessor(): ValidationErrorsProcessor return new ValidationErrorsProcessor($this->context); } } - -class_alias(PasswordValidator::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\PasswordValidator'); diff --git a/src/lib/Validator/Constraints/UserAccountPassword.php b/src/lib/Validator/Constraints/UserAccountPassword.php index 23420491..ad01ad3b 100644 --- a/src/lib/Validator/Constraints/UserAccountPassword.php +++ b/src/lib/Validator/Constraints/UserAccountPassword.php @@ -11,5 +11,3 @@ class UserAccountPassword extends Password { } - -class_alias(UserAccountPassword::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\UserAccountPassword'); diff --git a/src/lib/Validator/Constraints/UserAccountPasswordValidator.php b/src/lib/Validator/Constraints/UserAccountPasswordValidator.php index bacd476d..abe903af 100644 --- a/src/lib/Validator/Constraints/UserAccountPasswordValidator.php +++ b/src/lib/Validator/Constraints/UserAccountPasswordValidator.php @@ -36,5 +36,3 @@ protected function createValidationErrorsProcessor(): ValidationErrorsProcessor }); } } - -class_alias(UserAccountPasswordValidator::class, 'EzSystems\EzPlatformContentForms\Validator\Constraints\UserAccountPasswordValidator'); diff --git a/src/lib/Validator/ValidationErrorsProcessor.php b/src/lib/Validator/ValidationErrorsProcessor.php index f8d5e4b5..cd97dc14 100644 --- a/src/lib/Validator/ValidationErrorsProcessor.php +++ b/src/lib/Validator/ValidationErrorsProcessor.php @@ -61,5 +61,3 @@ public function processValidationErrors(array $validationErrors): void } } } - -class_alias(ValidationErrorsProcessor::class, 'EzSystems\EzPlatformContentForms\Validator\ValidationErrorsProcessor'); From 3bd38845dd59ab2af8a608207bfeec07f8939de0 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 21 May 2024 16:45:29 +0200 Subject: [PATCH 2/3] Dropped class_alias BC layer from test code --- .../Compiler/FieldTypeFormMapperDispatcherPassTest.php | 2 -- tests/lib/Event/FormActionEventTest.php | 2 -- .../lib/FieldType/DataTransformer/FieldValueTransformerTest.php | 2 -- .../DataTransformer/MultiSelectionValueTransformerTest.php | 2 -- .../DataTransformer/MultipleCountryValueTransformerTest.php | 2 -- .../DataTransformer/RelationListValueTransformerTest.php | 2 -- .../DataTransformer/SingleSelectionValueTransformerTest.php | 2 -- .../lib/FieldType/DataTransformer/TimeValueTransformerTest.php | 2 -- tests/lib/FieldType/FieldTypeFormMapperDispatcherTest.php | 2 -- tests/lib/FieldType/Mapper/BaseMapperTest.php | 2 -- .../FieldType/Mapper/FormTypeBasedFieldValueFormMapperTest.php | 2 -- .../FieldType/Mapper/UserAccountFieldValueFormMapperTest.php | 2 -- tests/lib/Validator/Constraints/FieldValueTest.php | 2 -- tests/lib/Validator/Constraints/PasswordTest.php | 2 -- tests/lib/Validator/Constraints/PasswordValidatorTest.php | 2 -- tests/lib/Validator/Constraints/UserAccountPasswordTest.php | 2 -- .../Validator/Constraints/UserAccountPasswordValidatorTest.php | 2 -- 17 files changed, 34 deletions(-) diff --git a/tests/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPassTest.php b/tests/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPassTest.php index f0c75eb9..0b93ac6e 100644 --- a/tests/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPassTest.php +++ b/tests/bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPassTest.php @@ -55,5 +55,3 @@ public function tagsProvider(): array ]; } } - -class_alias(FieldTypeFormMapperDispatcherPassTest::class, 'EzSystems\EzPlatformContentFormsBundle\Tests\DependencyInjection\Compiler\FieldTypeFormMapperDispatcherPassTest'); diff --git a/tests/lib/Event/FormActionEventTest.php b/tests/lib/Event/FormActionEventTest.php index 7cfdfcd3..26bac432 100644 --- a/tests/lib/Event/FormActionEventTest.php +++ b/tests/lib/Event/FormActionEventTest.php @@ -76,5 +76,3 @@ public function testGetOption() self::assertSame($objectOption, $event->getOption('obj')); } } - -class_alias(FormActionEventTest::class, 'EzSystems\EzPlatformContentForms\Tests\Event\FormActionEventTest'); diff --git a/tests/lib/FieldType/DataTransformer/FieldValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/FieldValueTransformerTest.php index 68e185bf..2558a239 100644 --- a/tests/lib/FieldType/DataTransformer/FieldValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/FieldValueTransformerTest.php @@ -84,5 +84,3 @@ public function testReverseTransform() self::assertSame($expected, $result); } } - -class_alias(FieldValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\FieldValueTransformerTest'); diff --git a/tests/lib/FieldType/DataTransformer/MultiSelectionValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/MultiSelectionValueTransformerTest.php index 809c0ae0..10730683 100644 --- a/tests/lib/FieldType/DataTransformer/MultiSelectionValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/MultiSelectionValueTransformerTest.php @@ -71,5 +71,3 @@ public function testReverseTransformNull() self::assertNull($transformer->reverseTransform(null)); } } - -class_alias(MultiSelectionValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\MultiSelectionValueTransformerTest'); diff --git a/tests/lib/FieldType/DataTransformer/MultipleCountryValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/MultipleCountryValueTransformerTest.php index bbe080e3..071aa2e1 100644 --- a/tests/lib/FieldType/DataTransformer/MultipleCountryValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/MultipleCountryValueTransformerTest.php @@ -116,5 +116,3 @@ public function testReverseTransformNull($value) self::assertNull($transformer->reverseTransform($value)); } } - -class_alias(MultipleCountryValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\MultipleCountryValueTransformerTest'); diff --git a/tests/lib/FieldType/DataTransformer/RelationListValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/RelationListValueTransformerTest.php index d7eb0491..e01d402d 100644 --- a/tests/lib/FieldType/DataTransformer/RelationListValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/RelationListValueTransformerTest.php @@ -40,5 +40,3 @@ public function dataProviderForTestReverseTransform(): iterable ]; } } - -class_alias(RelationListValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\RelationListValueTransformerTest'); diff --git a/tests/lib/FieldType/DataTransformer/SingleSelectionValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/SingleSelectionValueTransformerTest.php index f5b8592d..c9de2906 100644 --- a/tests/lib/FieldType/DataTransformer/SingleSelectionValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/SingleSelectionValueTransformerTest.php @@ -67,5 +67,3 @@ public function testReverseTransformNull() self::assertNull($transformer->reverseTransform(null)); } } - -class_alias(SingleSelectionValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\SingleSelectionValueTransformerTest'); diff --git a/tests/lib/FieldType/DataTransformer/TimeValueTransformerTest.php b/tests/lib/FieldType/DataTransformer/TimeValueTransformerTest.php index ba1311d3..f5cdbf35 100644 --- a/tests/lib/FieldType/DataTransformer/TimeValueTransformerTest.php +++ b/tests/lib/FieldType/DataTransformer/TimeValueTransformerTest.php @@ -50,5 +50,3 @@ public function testTransformInvalidValue() $transformer->transform((object) ['time' => 1]); } } - -class_alias(TimeValueTransformerTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\DataTransformer\TimeValueTransformerTest'); diff --git a/tests/lib/FieldType/FieldTypeFormMapperDispatcherTest.php b/tests/lib/FieldType/FieldTypeFormMapperDispatcherTest.php index 92622e35..1496b57d 100644 --- a/tests/lib/FieldType/FieldTypeFormMapperDispatcherTest.php +++ b/tests/lib/FieldType/FieldTypeFormMapperDispatcherTest.php @@ -49,5 +49,3 @@ public function testMapFieldValue() $this->dispatcher->map($formMock, $data); } } - -class_alias(FieldTypeFormMapperDispatcherTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\FieldTypeFormMapperDispatcherTest'); diff --git a/tests/lib/FieldType/Mapper/BaseMapperTest.php b/tests/lib/FieldType/Mapper/BaseMapperTest.php index b93090ad..13284989 100644 --- a/tests/lib/FieldType/Mapper/BaseMapperTest.php +++ b/tests/lib/FieldType/Mapper/BaseMapperTest.php @@ -67,5 +67,3 @@ protected function setUp(): void ->getMock(); } } - -class_alias(BaseMapperTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\Mapper\BaseMapperTest'); diff --git a/tests/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapperTest.php b/tests/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapperTest.php index 57e7faaf..bd53ef5c 100644 --- a/tests/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapperTest.php +++ b/tests/lib/FieldType/Mapper/FormTypeBasedFieldValueFormMapperTest.php @@ -62,5 +62,3 @@ public function testMapFieldValueFormWithLanguageCode() $mapper->mapFieldValueForm($this->fieldForm, $this->data); } } - -class_alias(FormTypeBasedFieldValueFormMapperTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\Mapper\FormTypeBasedFieldValueFormMapperTest'); diff --git a/tests/lib/FieldType/Mapper/UserAccountFieldValueFormMapperTest.php b/tests/lib/FieldType/Mapper/UserAccountFieldValueFormMapperTest.php index ae0137c6..07f53803 100644 --- a/tests/lib/FieldType/Mapper/UserAccountFieldValueFormMapperTest.php +++ b/tests/lib/FieldType/Mapper/UserAccountFieldValueFormMapperTest.php @@ -84,5 +84,3 @@ public function testMapFieldValueFormWithLanguageCode() $mapper->mapFieldValueForm($this->fieldForm, $this->data); } } - -class_alias(UserAccountFieldValueFormMapperTest::class, 'EzSystems\EzPlatformContentForms\Tests\FieldType\Mapper\UserAccountFieldValueFormMapperTest'); diff --git a/tests/lib/Validator/Constraints/FieldValueTest.php b/tests/lib/Validator/Constraints/FieldValueTest.php index 9a682199..3e0de144 100644 --- a/tests/lib/Validator/Constraints/FieldValueTest.php +++ b/tests/lib/Validator/Constraints/FieldValueTest.php @@ -33,5 +33,3 @@ public function testGetTargets() self::assertSame(Constraint::CLASS_CONSTRAINT, $constraint->getTargets()); } } - -class_alias(FieldValueTest::class, 'EzSystems\EzPlatformContentForms\Tests\Validator\Constraints\FieldValueTest'); diff --git a/tests/lib/Validator/Constraints/PasswordTest.php b/tests/lib/Validator/Constraints/PasswordTest.php index 64d8647a..c32f6888 100644 --- a/tests/lib/Validator/Constraints/PasswordTest.php +++ b/tests/lib/Validator/Constraints/PasswordTest.php @@ -37,5 +37,3 @@ public function testGetTargets() self::assertSame([Password::CLASS_CONSTRAINT, Password::PROPERTY_CONSTRAINT], $this->constraint->getTargets()); } } - -class_alias(PasswordTest::class, 'EzSystems\EzPlatformContentForms\Tests\Validator\Constraints\PasswordTest'); diff --git a/tests/lib/Validator/Constraints/PasswordValidatorTest.php b/tests/lib/Validator/Constraints/PasswordValidatorTest.php index fc518180..e3d79cd5 100644 --- a/tests/lib/Validator/Constraints/PasswordValidatorTest.php +++ b/tests/lib/Validator/Constraints/PasswordValidatorTest.php @@ -132,5 +132,3 @@ public function dataProviderForValidateNotSupportedValueType(): array ]; } } - -class_alias(PasswordValidatorTest::class, 'EzSystems\EzPlatformContentForms\Tests\Validator\Constraints\PasswordValidatorTest'); diff --git a/tests/lib/Validator/Constraints/UserAccountPasswordTest.php b/tests/lib/Validator/Constraints/UserAccountPasswordTest.php index 81ebf3c7..1687d9fb 100644 --- a/tests/lib/Validator/Constraints/UserAccountPasswordTest.php +++ b/tests/lib/Validator/Constraints/UserAccountPasswordTest.php @@ -37,5 +37,3 @@ public function testGetTargets() self::assertSame([UserAccountPassword::CLASS_CONSTRAINT, UserAccountPassword::PROPERTY_CONSTRAINT], $this->constraint->getTargets()); } } - -class_alias(UserAccountPasswordTest::class, 'EzSystems\EzPlatformContentForms\Tests\Validator\Constraints\UserAccountPasswordTest'); diff --git a/tests/lib/Validator/Constraints/UserAccountPasswordValidatorTest.php b/tests/lib/Validator/Constraints/UserAccountPasswordValidatorTest.php index 50456dfa..c0859d69 100644 --- a/tests/lib/Validator/Constraints/UserAccountPasswordValidatorTest.php +++ b/tests/lib/Validator/Constraints/UserAccountPasswordValidatorTest.php @@ -133,5 +133,3 @@ public function testInvalid() ])); } } - -class_alias(UserAccountPasswordValidatorTest::class, 'EzSystems\EzPlatformContentForms\Tests\Validator\Constraints\UserAccountPasswordValidatorTest'); From fb434f9854f02ce7e10121943f9925b49e60d96f Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 22 May 2024 01:22:41 +0200 Subject: [PATCH 3/3] [Composer] Dropped legacy namespaces from autoload section --- composer.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/composer.json b/composer.json index 99662fb9..fb6ba918 100644 --- a/composer.json +++ b/composer.json @@ -40,9 +40,6 @@ }, "autoload": { "psr-4": { - "EzSystems\\EzPlatformContentFormsBundle\\": "src/bundle/", - "EzSystems\\EzPlatformContentForms\\": "src/lib/", - "EzSystems\\EzPlatformContentForms\\Features\\": "features/", "Ibexa\\ContentForms\\": "src/lib/", "Ibexa\\Bundle\\ContentForms\\": "src/bundle/", "Ibexa\\Contracts\\ContentForms\\": "src/contracts/" @@ -50,8 +47,6 @@ }, "autoload-dev": { "psr-4": { - "EzSystems\\EzPlatformContentForms\\Tests\\": "tests/lib/", - "EzSystems\\EzPlatformContentFormsBundle\\Tests\\": "tests/bundle/", "Ibexa\\Tests\\Bundle\\ContentForms\\": "tests/bundle/", "Ibexa\\Tests\\Integration\\ContentForms\\": "tests/integration/", "Ibexa\\Tests\\ContentForms\\": "tests/lib/"