AbstractDispatcher
in package
implements
DispatchableInterface
AbstractYes
Abstract dispatcher class
Tags
Table of Contents
Interfaces
- DispatchableInterface
- Dispatchable interface
Properties
- $defaultAction : string
- Default action
Methods
- dispatch() : void
- Dispatch the controller based on the action
- getDefaultAction() : string
- Get the default action
- setDefaultAction() : static
- Set the default action
Properties
$defaultAction
Default action
protected
string
$defaultAction
= 'error'
Methods
dispatch()
Dispatch the controller based on the action
public
dispatch([string|null $action = null ][, array<string|int, mixed>|null $params = null ]) : void
Parameters
- $action : string|null = null
- $params : array<string|int, mixed>|null = null
Tags
getDefaultAction()
Get the default action
public
getDefaultAction() : string
Return values
stringsetDefaultAction()
Set the default action
public
setDefaultAction(string $default) : static
Parameters
- $default : string