deprecated

 Methods

Attach the aggregate to the specified event manager

attach(\Zend\EventManager\EventManagerInterface $events) : void
Inherited

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

inherited_from \Zend\Mvc\SendResponseListener::attach()

Parameters

Detach aggregate listeners from the specified event manager

detach(\Zend\EventManager\EventManagerInterface $events) : void
Inherited

inherited_from \Zend\Mvc\SendResponseListener::detach()

Parameters

Get the send response event

getEvent() : \Zend\Mvc\ResponseSender\SendResponseEvent
Inherited

inherited_from \Zend\Mvc\SendResponseListener::getEvent()

Returns

Retrieve the event manager

getEventManager() : \Zend\EventManager\EventManagerInterface
Inherited

Lazy-loads an EventManager instance if none registered.

inherited_from \Zend\Mvc\SendResponseListener::getEventManager()

Returns

Send the response

sendResponse(\Zend\Mvc\MvcEvent $e) : void
Inherited

inherited_from \Zend\Mvc\SendResponseListener::sendResponse()

Parameters

Set the send response event

setEvent(\Zend\Mvc\ResponseSender\SendResponseEvent $e) : \Zend\Mvc\ResponseSender\SendResponseEvent
Inherited

inherited_from \Zend\Mvc\SendResponseListener::setEvent()

Parameters

Returns

Inject an EventManager instance

setEventManager(\Zend\EventManager\EventManagerInterface $eventManager) : \Zend\Mvc\SendResponseListener
Inherited

inherited_from \Zend\Mvc\SendResponseListener::setEventManager()

Parameters

Returns

Register the default event listeners

attachDefaultListeners() : \Zend\Mvc\SendResponseListener
Inherited

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.

inherited_from \Zend\Mvc\SendResponseListener::attachDefaultListeners()

Returns

 Properties

 

$event

$event : \Zend\Mvc\ResponseSender\SendResponseEvent
Inherited

inherited_from \Zend\Mvc\SendResponseListener::$$event
 

$eventManager

$eventManager : \Zend\EventManager\EventManagerInterface
Inherited

inherited_from \Zend\Mvc\SendResponseListener::$$eventManager
 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]
Inherited

inherited_from \Zend\Mvc\SendResponseListener::$$listeners