StandaloneActionResolver
API reference › Debug › service › StandaloneActionResolver
Merges the standalone actions the debugger exposes and resolves a route against the resulting map.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$module protected readonly constructor | yii\ | Debug module read for the action map and the default route at call time. | StandaloneActionResolver |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Binds standalone action mapping and resolution to the debug module. | StandaloneActionResolver |
map() | Merges the built-in and panel-declared standalone actions with the configured ones. | StandaloneActionResolver |
resolve() | Resolves a route against the module action map and binds the action it names. | StandaloneActionResolver |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(yii\debug\Module $module)Binds standalone action mapping and resolution to the debug module.
Parameters
| Parameter | Type | Description |
|---|---|---|
$module | yii\ | Debug module read for the action map and the default route at call time. |
map()
Section titled “map() ”public function map(array<string, class-string> $core, array<string, yii\debug\Panel> $panels, array<string, array<string, mixed>|class-string> $configured): array<string, array<string, mixed>|class-string>Merges the built-in and panel-declared standalone actions with the configured ones.
Precedence, lowest to highest: the built-in actions, the actions registered panels declare through
Panel::$actions, and the entries the application configured directly.
Parameters
| Parameter | Type | Description |
|---|---|---|
$core | array<string, | Built-in actions indexed by action ID. |
$panels | array<string, yii\> | Registered panels contributing their own actions. |
$configured | array<string, | Actions configured by the application. |
Returns
array<string, array<string, mixed>|class-string>: Merged action map indexed by action ID.
resolve()
Section titled “resolve() ”public function resolve(string $route): yii\base\Action|nullResolves a route against the module action map and binds the action it names.
An empty route falls back to Module::$defaultRoute; surrounding slashes are ignored, and a route naming
more than one segment is left to convention-based discovery.
Parameters
| Parameter | Type | Description |
|---|---|---|
$route | string | Action route relative to the module. |
Returns
yii\base\Action|null: Action bound to the module, or null when the route names no mapped action.
Throws
yii\base\InvalidConfigException: when object creation fails for a resolvable entry.