Class Redirect

Summary

Fully Qualified Name: Laminas\Mvc\Controller\Plugin\Redirect
Extends: AbstractPlugin

Description

Methods

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

Method Details

getController()

Get the current controller instance

Returns: null|\Dispatchable

refresh()

Refresh to current route

Returns: \Response

setController()

Set the current controller instance

Parameter Name Type Description
$controller \Dispatchable

Returns: void

toRoute()

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

toUrl()

Generate redirect response based on given URL

Parameter Name Type Description
$url string

Returns: \Response

Top