Inject an EventManager instance
Parameters: | EventManagerInterface – |
---|---|
Return type: | SendResponseListener |
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Return type: | EventManagerInterface |
---|
Attach the aggregate to the specified event manager
Parameters: | EventManagerInterface – |
---|---|
Return type: | void |
Detach aggregate listeners from the specified event manager
Parameters: | EventManagerInterface – |
---|---|
Return type: | void |
Set the send response event
Parameters: | SendResponseEvent – |
---|---|
Return type: | SendResponseEvent |
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 |
---|