extends |
Ui5ShellContributorInterface |
|---|
Orchestrates the CmdK search pipeline.
This service coordinates the complete search lifecycle for CmdK.
It is responsible for:
It MUST NOT:
All visibility and authorization concerns MUST be delegated to VisibilityConstrainer implementations, which in turn delegate to the Security domain (Resolvers, Scopes, etc.).
The canonical lifecycle per collector pair is:
$query = $collector->query($search, $context); $query = $constraint->constrain($query, $context); $items = $collector->collect($query, $context);
The SearchService guarantees:
CmdK Layer:
Security Layer:
The SearchService interacts ONLY with Collectors and VisibilityConstrainers. It MUST remain unaware of the internal security implementation details.
This service is used exclusively in SEARCH mode of CmdK.
| Methods | ||
|---|---|---|
public
|
discover(
string $search,
SdkContext $context,
int|null $limit = null,
): array{actions: Action[], totalCount: int, tooMany: bool, message: ?string}
|
# |
| Methods inherited from LaravelUi5\Sdk\Platform\Manifest\Contracts\Ui5ShellContributorInterface |
|---|
contributeShellFragment() |