Hi Larry,

Currently, Symfony distinguishes between these sorts of events as you said,
by providing mutable or immutable event objects. If an event object is
immutable, the event is clearly an "info" event. If the event object is
mutable, it would be an "alter" event.

For example, GetResponseEvent [1] in HttpKernel is an "alter" event,
while PostResponseEvent [2] is an "info" event.

I don't think you need a more sophisticated pattern than that.

Cheers,
Bernhard

[1]
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php
[2]
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Event/PostResponseEvent.php

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to