ActionBridge
in package
Bridge that dispatches to existing plugin action classes from Laravel routes.
Locates the action class file via plugin module directories, creates the action instance, and calls execute{ActionName}() with a wrapped request. Returns the rendered output as a Laravel Response.
Supports three dispatch modes:
- AhgController — new standalone controllers (WP2)
- AhgActions — modern framework actions (Blade rendering)
- sfActions — base AtoM action classes (full compatibility bridge)
Table of Contents
Methods
- dispatch() : mixed
- Dispatch to a plugin action class.
Methods
dispatch()
Dispatch to a plugin action class.
public
dispatch(Request $request) : mixed
Route parameters _module and _action are set by RouteCollector/RouteLoader.
Parameters
- $request : Request