Class SendResponseListener

Summary

Fully Qualified Name: Zend\Mvc\SendResponseListener
Extends: AbstractListenerAggregate
Implements: EventManagerAwareInterface

Description

Methods

Name Description Defined By
attach() Attach the aggregate to the specified event manager SendResponseListener
detach() {@inheritDoc} AbstractListenerAggregate
getEvent() Get the send response event SendResponseListener
getEventManager() Retrieve the event manager SendResponseListener
sendResponse() Send the response SendResponseListener
setEvent() Set the send response event SendResponseListener
setEventManager() Inject an EventManager instance SendResponseListener

Method Details

attach()

Attach the aggregate to the specified event manager

Parameter Name Type Description
$events \EventManagerInterface
$priority int

Returns: void

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

getEvent()

Get the send response event

Returns: \SendResponseEvent

getEventManager()

Retrieve the event manager

Lazy-loads an EventManager instance if none registered.

Returns: \EventManagerInterface

sendResponse()

Send the response

Parameter Name Type Description
$e \MvcEvent

Returns: void

setEvent()

Set the send response event

Parameter Name Type Description
$e \SendResponseEvent

Returns: \SendResponseEvent

setEventManager()

Inject an EventManager instance

Parameter Name Type Description
$eventManager \EventManagerInterface

Returns: \SendResponseListener

Top