Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.0, 5.1, 5.2, 5.3
Description
See http://slides.seld.be/?file=2011-10-20+High+Performance+Websites+with+Symfony2.html#44 and http://slides.seld.be/?file=2011-10-20+High+Performance+Websites+with+Symfony2.html#45.
When a response/exception listener only applies within a context, the listener should ideally be added by the request listener (if any).
This at least applies to the REST listeners. Instead of setting a request property, eZ/Bundle/EzPublishRestBundle/EventListener/RequestListener.php should attach the response & exception listeners if the request is a REST ONE.