Property | Type | Description | |
---|---|---|---|
$actions | array | The handler classes for all registered actions. | |
$factory | The action factory instance. |
Method | Description | |
---|---|---|
__construct ( |
Create a new server instance. | |
dispatch ( |
Resolve the request and return a response. | |
registerAction ( string $name, string $actionClass ) | Register a named action and its handler class. |
Method | Description | |
---|---|---|
resolveAction ( $name ) : |
Resolve an action instance by name. |
public __construct ( |
||
$factory |
public dispatch ( |
||
$request | ||
return |
public registerAction ( string $name, string $actionClass ) | ||
$name | string | |
$actionClass | string |
protected resolveAction ( $name ) : |
||
$name | ||
return |
protected array $actions | ||
return | array |