Fully Qualified Name: | Zend\Mvc\SendResponseListener |
Extends: | AbstractListenerAggregate |
Implements: | EventManagerAwareInterface |
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 |
Attach the aggregate to the specified event manager
Parameter Name | Type | Description |
---|---|---|
$events | \EventManagerInterface | |
$priority | int |
Returns: void
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events |
Returns:
Get the send response event
Returns: \SendResponseEvent
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Returns: \EventManagerInterface
Send the response
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: void
Set the send response event
Parameter Name | Type | Description |
---|---|---|
$e | \SendResponseEvent |
Returns: \SendResponseEvent
Inject an EventManager instance
Parameter Name | Type | Description |
---|---|---|
$eventManager | \EventManagerInterface |
Returns: \SendResponseListener