Interface LaravelUi5\Sdk\Intent\Contracts\IntentHandlerInterface

Handles the execution logic of a specific intent.

Mental model: IntentHandler = Decision Maker

Responsibilities:

  • validate business preconditions
  • inspect current context
  • decide the outcome

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:

  • constructs UI directly
  • mutates intent objects
  • performs routing decisions in the frontend
  • LaravelUi5\Sdk\Intent\Contracts\IntentHandlerInterface
    • LaravelUi5\Sdk\Intent\Ui5ValueHelpOpenIntentHandler implements IntentHandlerInterface
    • LaravelUi5\Sdk\Intent\NavigationIntentHandler implements IntentHandlerInterface
    • LaravelUi5\Sdk\Intent\WeaveHandler implements IntentHandlerInterface
    • LaravelUi5\Sdk\Intent\WeaveOpenHandler implements IntentHandlerInterface
    • LaravelUi5\Sdk\Intent\Ui5ArtifactOpenIntentHandler implements IntentHandlerInterface
Methods