Zend\Mvc\SendResponseListener
Synopsis
class SendResponseListener
implements
EventManagerAwareInterface,ListenerAggregateInterface
{
- // members
- protected array $listeners;
- protected SendResponseEvent $event;
- protected EventManagerInterface $eventManager;
- // methods
- public SendResponseListener setEventManager()
- public EventManagerInterface getEventManager()
- public void attach()
- public void detach()
- public void sendResponse()
- public SendResponseEvent getEvent()
- public SendResponseEvent setEvent()
- protected SendResponseListener attachDefaultListeners()
Hierarchy
Extended by
Implements
Members
protected
- $event — Zend\Mvc\ResponseSender\SendResponseEvent
- $eventManager — Zend\EventManager\EventManagerInterface
- $listeners — array
Methods
protected
- attachDefaultListeners() — Register the default event listeners
public
- attach() — Attach the aggregate to the specified event manager
- detach() — Detach aggregate listeners from the specified event manager
- getEvent() — Get the send response event
- getEventManager() — Retrieve the event manager
- sendResponse() — Send the response
- setEvent() — Set the send response event
- setEventManager() — Inject an EventManager instance