Handles the execution logic of a specific intent.
Mental model: IntentHandler = Decision Maker
Responsibilities:
Authorization is NOT a handler's job: the dispatcher runs the intent's
{@see IntentAuthorizerInterface} first and never resolves the handler when it
refuses. A handler's instanceof guard is a type guard, not a gate.
A handler NEVER:
| Methods | ||
|---|---|---|
public
|
handle(IntentInterface $intent, SdkContext $context): IntentResult
|
# |