Skip to content

Commit

Permalink
fix aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Nov 19, 2024
1 parent b7ac3ef commit 54a06c8
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,34 +73,34 @@
use Pimcore\Bundle\GenericDataIndexBundle\SearchIndexAdapter\OpenSearch\DataObject\FieldDefinitionAdapter\AbstractAdapter as OpenSearchDataObjectAbstractAdapter;

$classesToAlias = [
OpenSearchAttributeType::class => AttributeType::class,
OpenSearchConditionType::class => ConditionType::class,
OpenSearchQueryType::class => QueryType::class,
OpenSearchWildcardFilterMode::class => WildcardFilterMode::class,
OpenSearchSearchFailedException::class => SearchFailedException::class,
OpenSearchAggregation::class => Aggregation::class,
OpenSearchAggregationList::class => AggregationList::class,
OpenSearchSearchInformation::class => SearchInformation::class,
OpenSearchModifierContext::class => SearchModifierContext::class,
OpenSearchModifierContextInterface::class => SearchModifierContextInterface::class,
OpenSearchAsSubQueryInterface::class => AsSubQueryInterface::class,
OpenSearchBoolQuery::class => BoolQuery::class,
OpenSearchDateFilter::class => DateFilter::class,
OpenSearchQuery::class => Query::class,
OpenSearchQueryInterface::class => QueryInterface::class,
OpenSearchQueryList::class => QueryList::class,
OpenSearchSimpleQueryStringFilter::class => SimpleQueryStringFilter::class,
OpenSearchTermFilter::class => TermFilter::class,
OpenSearchTermsFilter::class => TermsFilter::class,
OpenSearchWildcardFilter::class => WildcardFilter::class,
OpenSearchFieldSort::class => FieldSort::class,
OpenSearchFieldSortList::class => FieldSortList::class,
OpenSearchQueryObjectsToArrayTrait::class => QueryObjectsToArrayTrait::class,
OpenSearchSimplifySingleTypesTrait::class => SimplifySingleTypesTrait::class,
OpenSearchSearch::class => Search::class,
OpenSearchSearchInterface::class => DefaultSearchInterface::class,
OpenSearchAssetAbstractAdapter::class => AssetAbstractAdapter::class,
OpenSearchDataObjectAbstractAdapter::class => DataObjectAbstractAdapter::class,
AttributeType::class => OpenSearchAttributeType::class,
ConditionType::class => OpenSearchConditionType::class,
QueryType::class => OpenSearchQueryType::class,
WildcardFilterMode::class => OpenSearchWildcardFilterMode::class,
SearchFailedException::class => OpenSearchSearchFailedException::class,
Aggregation::class => OpenSearchAggregation::class,
AggregationList::class => OpenSearchAggregationList::class,
SearchInformation::class => OpenSearchSearchInformation::class,
SearchModifierContext::class => OpenSearchModifierContext::class,
SearchModifierContextInterface::class => OpenSearchModifierContextInterface::class,
AsSubQueryInterface::class => OpenSearchAsSubQueryInterface::class,
BoolQuery::class => OpenSearchBoolQuery::class,
DateFilter::class => OpenSearchDateFilter::class,
Query::class => OpenSearchQuery::class,
QueryInterface::class => OpenSearchQueryInterface::class,
QueryList::class => OpenSearchQueryList::class,
SimpleQueryStringFilter::class => OpenSearchSimpleQueryStringFilter::class,
TermFilter::class => OpenSearchTermFilter::class,
TermsFilter::class => OpenSearchTermsFilter::class,
WildcardFilter::class => OpenSearchWildcardFilter::class,
FieldSort::class => OpenSearchFieldSort::class,
FieldSortList::class => OpenSearchFieldSortList::class,
QueryObjectsToArrayTrait::class => OpenSearchQueryObjectsToArrayTrait::class,
SimplifySingleTypesTrait::class => OpenSearchSimplifySingleTypesTrait::class,
Search::class => OpenSearchSearch::class,
DefaultSearchInterface::class => OpenSearchSearchInterface::class,
AssetAbstractAdapter::class => OpenSearchAssetAbstractAdapter::class,
DataObjectAbstractAdapter::class => OpenSearchDataObjectAbstractAdapter::class,
];

foreach ($classesToAlias as $originalClass => $aliasClass) {
Expand Down

0 comments on commit 54a06c8

Please sign in to comment.