SearchRepository
FinalYes
Repository class to ease using the search API.
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $searchProviderRegistry : SearchProviderRegistry
Methods
- __construct() : mixed
- find() : ArrayPaginator
- getSearchProviderState() : array<class-string, SearchProviderInterface, isActive: bool}>
- Returns a list of available search providers including a flag whether they are currently active.
- getViableSearchProviders() : array<string|int, SearchProviderInterface>
Properties
$eventDispatcher read-only
protected
EventDispatcherInterface
$eventDispatcher
$searchProviderRegistry read-only
protected
SearchProviderRegistry
$searchProviderRegistry
Methods
__construct()
public
__construct(EventDispatcherInterface $eventDispatcher, SearchProviderRegistry $searchProviderRegistry) : mixed
Parameters
- $eventDispatcher : EventDispatcherInterface
- $searchProviderRegistry : SearchProviderRegistry
find()
public
find(SearchDemand $searchDemand) : ArrayPaginator
Parameters
- $searchDemand : SearchDemand
Return values
ArrayPaginatorgetSearchProviderState()
Returns a list of available search providers including a flag whether they are currently active.
public
getSearchProviderState(SearchDemand $searchDemand) : array<class-string, SearchProviderInterface, isActive: bool}>
Parameters
- $searchDemand : SearchDemand
Return values
array<class-string, SearchProviderInterface, isActive: bool}>getViableSearchProviders()
public
getViableSearchProviders(SearchDemand $searchDemand) : array<string|int, SearchProviderInterface>
Parameters
- $searchDemand : SearchDemand