1228. Class

1228.1. Zend\Mvc\SendResponseListener

1228.1.1. Methods

1228.1.1.1. setEventManager

setEventManager()

Inject an EventManager instance

Parameters:EventManagerInterface
Return type:SendResponseListener

1228.1.1.2. getEventManager

getEventManager()

Retrieve the event manager

Lazy-loads an EventManager instance if none registered.

Return type:EventManagerInterface

1228.1.1.3. attach

attach()

Attach the aggregate to the specified event manager

Parameters:EventManagerInterface
Return type:void

1228.1.1.4. detach

detach()

Detach aggregate listeners from the specified event manager

Parameters:EventManagerInterface
Return type:void

1228.1.1.5. sendResponse

sendResponse()

Send the response

Parameters:MvcEvent
Return type:void

1228.1.1.6. getEvent

getEvent()

Get the send response event

Return type:SendResponseEvent

1228.1.1.7. setEvent

setEvent()

Set the send response event

Parameters:SendResponseEvent
Return type:SendResponseEvent

1228.1.1.8. attachDefaultListeners

attachDefaultListeners()

Register the default event listeners

The order in which the response sender are listed here, is by their usage: PhpEnvironmentResponseSender has highest priority, because it’s used most often. ConsoleResponseSender and SimpleStreamResponseSender are not used that often, yo they have a lower priority. You can attach your response sender before or after every default response sender implementation. All default response sender implementation have negative priority. You are able to attach listeners without giving a priority and your response sender would be first to try.

Return type:SendResponseListener