Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@
"psr-4": {
"Ibexa\\Search\\": "src/lib/",
"Ibexa\\Bundle\\Search\\": "src/bundle/",
"Ibexa\\Contracts\\Search\\": "src/contracts/",
"Ibexa\\Platform\\Bundle\\Search\\": "src/bundle/",
"Ibexa\\Platform\\Search\\": "src/lib/"
"Ibexa\\Contracts\\Search\\": "src/contracts/"
}
},
"autoload-dev": {
"psr-4": {
"Ibexa\\Tests\\Bundle\\Search\\": "tests/bundle/",
"Ibexa\\Tests\\Contracts\\Search\\": "tests/contracts/",
"Ibexa\\Tests\\Search\\": "tests/lib/",
"Ibexa\\Platform\\Tests\\Contracts\\Search\\": "tests/contracts/",
"Ibexa\\Platform\\Tests\\Bundle\\Search\\": "tests/bundle/",
"Ibexa\\Platform\\Tests\\Search\\": "tests/lib/"
"Ibexa\\Tests\\Search\\": "tests/lib/"
}
},
"require": {
Expand Down
2 changes: 0 additions & 2 deletions src/bundle/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ public function searchAction(SearchView $view): SearchView
return $view;
}
}

class_alias(SearchController::class, 'Ibexa\Platform\Bundle\Search\Controller\SearchController');
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerIn
}
}
}

class_alias(Search::class, 'Ibexa\Platform\Bundle\Search\DependencyInjection\Configuration\Parser\Search');
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ class SearchView extends View
public const NODE_KEY = 'search_view';
public const INFO = 'Template for displaying main search form and results';
}

class_alias(SearchView::class, 'Ibexa\Platform\Bundle\Search\DependencyInjection\Configuration\Parser\SearchView');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/IbexaSearchExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ public function prependJMSTranslation(ContainerBuilder $container): void
]);
}
}

class_alias(IbexaSearchExtension::class, 'Ibexa\Platform\Bundle\Search\DependencyInjection\IbexaPlatformSearchExtension');
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,3 @@ private function getPriorityOrderedLanguages(): array
return array_merge($orderedLanguages, array_values($languagesAssoc));
}
}

class_alias(ConfiguredLanguagesChoiceLoader::class, 'Ibexa\Platform\Bundle\Search\Form\ChoiceLoader\ConfiguredLanguagesChoiceLoader');
2 changes: 0 additions & 2 deletions src/bundle/Form/ChoiceLoader/ContentTypeChoiceLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,3 @@ public function loadValuesForChoices(array $choices, callable $value = null)
return $this->loadChoiceList($value)->getValuesForChoices($choices);
}
}

class_alias(ContentTypeChoiceLoader::class, 'Ibexa\Platform\Bundle\Search\Form\ChoiceLoader\ContentTypeChoiceLoader');
2 changes: 0 additions & 2 deletions src/bundle/Form/Data/SearchData.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,3 @@ public function isFiltered(): bool
null !== $subtree;
}
}

class_alias(SearchData::class, 'Ibexa\Platform\Bundle\Search\Form\Data\SearchData');
2 changes: 0 additions & 2 deletions src/bundle/Form/Data/SearchUsersData.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ public function setPossibleUsers(array $possibleUsers): void
$this->possibleUsers = $possibleUsers;
}
}

class_alias(SearchUsersData::class, 'Ibexa\Platform\Bundle\Search\Form\Data\SearchUsersData');
2 changes: 0 additions & 2 deletions src/bundle/Form/DataTransformer/DateIntervalTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ public function reverseTransform($value)
];
}
}

class_alias(DateIntervalTransformer::class, 'Ibexa\Platform\Bundle\Search\Form\DataTransformer\DateIntervalTransformer');
2 changes: 0 additions & 2 deletions src/bundle/Form/DataTransformer/UserTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,3 @@ public function reverseTransform($value): ?User
}
}
}

class_alias(UserTransformer::class, 'Ibexa\Platform\Bundle\Search\Form\DataTransformer\UserTransformer');
2 changes: 0 additions & 2 deletions src/bundle/Form/DataTransformer/UsersTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ public function reverseTransform($value): SearchUsersData
);
}
}

class_alias(UsersTransformer::class, 'Ibexa\Platform\Bundle\Search\Form\DataTransformer\UsersTransformer');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/ContentTypeChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ public function configureOptions(OptionsResolver $resolver)
]);
}
}

class_alias(ContentTypeChoiceType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\ContentTypeChoiceType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/DateIntervalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->addModelTransformer(new DateIntervalTransformer());
}
}

class_alias(DateIntervalType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\DateIntervalType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/LanguageChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public function configureOptions(OptionsResolver $resolver): void
]);
}
}

class_alias(LanguageChoiceType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\LanguageChoiceType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/SearchType.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ public function configureOptions(OptionsResolver $resolver)
]);
}
}

class_alias(SearchType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\SearchType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/SearchUsersType.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ public function configureOptions(OptionsResolver $resolver)
]);
}
}

class_alias(SearchUsersType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\SearchUsersType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/SectionChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public function getParent(): ?string
return ChoiceType::class;
}
}

class_alias(SectionChoiceType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\SectionChoiceType');
2 changes: 0 additions & 2 deletions src/bundle/Form/Type/UserType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function getParent(): ?string
return HiddenType::class;
}
}

class_alias(UserType::class, 'Ibexa\Platform\Bundle\Search\Form\Type\UserType');
2 changes: 0 additions & 2 deletions src/bundle/IbexaSearchBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ public function build(ContainerBuilder $container)
$core->addConfigParser(new SuggestionParser());
}
}

class_alias(IbexaSearchBundle::class, 'Ibexa\Platform\Bundle\Search\IbexaPlatformSearchBundle');
2 changes: 0 additions & 2 deletions src/lib/Mapper/PagerSearchContentToDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,3 @@ protected function setTranslatedContentTypesNames(array &$data, array $contentTy
}
}
}

class_alias(PagerSearchContentToDataMapper::class, 'Ibexa\Platform\Search\Mapper\PagerSearchContentToDataMapper');
2 changes: 0 additions & 2 deletions src/lib/QueryType/SearchQueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,3 @@ private function buildSectionTermAggregation(array $parameters): SectionTermAggr
return $aggregation;
}
}

class_alias(SearchQueryType::class, 'Ibexa\Platform\Search\QueryType\SearchQueryType');
2 changes: 0 additions & 2 deletions src/lib/View/SearchView.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@
class SearchView extends BaseView
{
}

class_alias(SearchView::class, 'Ibexa\Platform\Search\View\SearchView');
2 changes: 0 additions & 2 deletions src/lib/View/SearchViewBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ private function getSearchLanguageFilter(?string $languageCode): array
];
}
}

class_alias(SearchViewBuilder::class, 'Ibexa\Platform\Search\View\SearchViewBuilder');
2 changes: 0 additions & 2 deletions src/lib/View/SearchViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,3 @@ public function handleSearchForm(FilterViewBuilderParametersEvent $event): void
]);
}
}

class_alias(SearchViewFilter::class, 'Ibexa\Platform\Search\View\SearchViewFilter');
2 changes: 0 additions & 2 deletions src/lib/View/SearchViewProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ protected function buildSearchListView(array $viewConfig): SearchView
return $view;
}
}

class_alias(SearchViewProvider::class, 'Ibexa\Platform\Search\View\SearchViewProvider');
Loading