1429. Class

1429.1. Zend\Mvc\Controller\Plugin\Forward

1429.1.1. Methods

1429.1.1.1. setMaxNestedForwards

setMaxNestedForwards()

Set maximum number of nested forwards allowed

Parameters:int
Return type:Forward

1429.1.1.2. getListenersToDetach

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).

Return type:array

1429.1.1.3. setListenersToDetach

setListenersToDetach()

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

Parameters:array – Listener information; see getListenersToDetach() for details on format.
Return type:void

1429.1.1.4. dispatch

dispatch()

Dispatch another controller

Parameters:
  • string – Controller name; either a class name or an alias used in the DI container or service locator
  • null|array – Parameters with which to seed a custom RouteMatch object for the new controller
Return type:

mixed

Throws :

ExceptionDomainException if composed controller does not define InjectApplicationEventInterface or Locator aware; or if the discovered controller is not dispatchable

1429.1.1.5. detachProblemListeners

detachProblemListeners()

Detach problem listeners specified by getListenersToDetach() and return an array of information that will allow them to be reattached.

Parameters:SharedEvents – Shared event manager
Return type:array

1429.1.1.6. reattachProblemListeners

reattachProblemListeners()

Reattach all problem listeners detached by detachProblemListeners(), if any.

Parameters:
  • SharedEvents – Shared event manager
  • array – Output of detachProblemListeners()
Return type:

void

1429.1.1.7. getLocator

getLocator()

Get the locator

Return type:ServiceLocatorInterface
Throws :ExceptionDomainException if unable to find locator

1429.1.1.8. getEvent

getEvent()

Get the event

Return type:MvcEvent
Throws :ExceptionDomainException if unable to find event