Class Forward

Summary

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

Description

Methods

Name Description Defined By
__construct() Forward
dispatch() Dispatch another controller Forward
getController() Get the current controller instance AbstractPlugin
getListenersToDetach() Get information on listeners that need to be detached before dispatching. Forward
setController() Set the current controller instance AbstractPlugin
setListenersToDetach() Set information on listeners that need to be detached before dispatching. Forward
setMaxNestedForwards() Set maximum number of nested forwards allowed Forward

Method Details

__construct()

Parameter Name Type Description
$controllers \ControllerManager

Returns:

dispatch()

Dispatch another controller

Parameter Name Type Description
$name string Controller
$params null|array Parameters

Returns: mixed

getController()

Get the current controller instance

Returns: null|\Dispatchable

getListenersToDetach()

Get information on listeners that need to be detached before dispatching.

Each entry in the array contains three keys:

id (identifier for event-emitting component), event (the hooked event) and class (the class of listener that should be detached).

Returns: array

setController()

Set the current controller instance

Parameter Name Type Description
$controller \Dispatchable

Returns: void

setListenersToDetach()

Set information on listeners that need to be detached before dispatching.

Parameter Name Type Description
$listeners array Listener

Returns: self

setMaxNestedForwards()

Set maximum number of nested forwards allowed

Parameter Name Type Description
$maxNestedForwards int

Returns: self

Top