Class LaravelUi5\Core\Http\Controllers\ResourceController

extends Controller

Controller for executing UI5 Resources.

This controller is invoked only for routes that map to UI5 Resources. The current Ui5Context is provided by middleware and guarantees that $context->artifact is an instance of Ui5ResourceInterface.

Responsibilities:

  • Resolve the ResourceDataProvider from the Resource artifact.
  • If the provider implements ParameterizableInterface, inject validated parameters.
  • If the provider implements ConfigurableInterface, inject resolved settings.
  • Execute the provider and return the result as JSON.

Notes:

  • We assume the artifact in the context is always a Ui5ResourceInterface; no additional instanceof check is performed here.
  • Execution is side-effect free: Resources are read-only endpoints (GET).
  • Illuminate\Routing\Controller
    • LaravelUi5\Core\Http\Controllers\ResourceController
Methods