| Fully Qualified Name: | Zend\Mvc\Controller\Plugin\Redirect |
| Extends: | AbstractPlugin |
| Name | Description | Defined By |
|---|---|---|
| getController() | Get the current controller instance | AbstractPlugin |
| refresh() | Refresh to current route | Redirect |
| setController() | Set the current controller instance | AbstractPlugin |
| toRoute() | Generate redirect response based on given route | Redirect |
| toUrl() | Generate redirect response based on given URL | Redirect |
Get the current controller instance
Returns: null|\Dispatchable
Refresh to current route
Returns: \Response
Set the current controller instance
| Parameter Name | Type | Description |
|---|---|---|
| $controller | \Dispatchable |
Returns: void
Generate redirect response based on given route
| Parameter Name | Type | Description |
|---|---|---|
| $route | string | RouteInterface |
| $params | array | Parameters |
| $options | array | RouteInterface-specific |
| $reuseMatchedParams | bool | Whether |
Returns: \Response
Generate redirect response based on given URL
| Parameter Name | Type | Description |
|---|---|---|
| $url | string |
Returns: \Response