Declares an {@see AbilityType::Call} ability on a released service — mandatory on an operation ({@see AbstractOperation}), which another domain calls always guarded; optional on a service ({@see AbstractService}), which without it is called freely, and which carries it when it writes. The SDK's service mediator checks it against the caller's actor before the call runs, and refuses otherwise.
The resulting i18n keys for UI labels must be provided as:
Nota Bene: Changing an ability name is a breaking security change.
| Methods | ||
|---|---|---|
public
|
__construct(string $ability, string|BackedEnum $role, string $note)
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$ability
|
# |
public
|
string|BackedEnum
|
$role
|
# |
public
|
string
|
$note
|
# |