Skip to content

zend framework 2 - list of shipped defined events (zf2)

I just read the manual since i need to know what kind of existing events are available.

SendResponseEvent defines the "EVENT_SEND_RESPONSE" event.

MvcEvent defines "EVENT_BOOTSTRAP", "EVENT_DISPATCH", "EVENT_DISPATCH_ERROR", "EVENT_FINISH", "EVENT_RENDER", "EVENT_RENDER_ERROR" and "EVENT_ROUTE" event.

ViewEvent defines "EVENT_RENDERER", "EVENT_RENDERER_POST" and "EVENT_RESPONSE".
The ModuleEvent defines "EVENT_LOAD_MODULES", "EVENT_LOAD_MODULES_RESOLVE", "EVENT_LOAD_MODULE" and the "EVENT_LOAD_MODULE_POST" event.

Last but not least, doing the following ack-grep

ack 'extends\ Event' vendor/zendframework/
has the following results.
vendor/zendframework/zendframework/library/Zend/View/ViewEvent.php
19:class ViewEvent extends Event

vendor/zendframework/zendframework/library/Zend/Mvc/ResponseSender/SendResponseEvent.php
15:class SendResponseEvent extends Event

vendor/zendframework/zendframework/library/Zend/Mvc/MvcEvent.php
18:class MvcEvent extends Event

vendor/zendframework/zendframework/library/Zend/Cache/Storage/PostEvent.php
14:class PostEvent extends Event

vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleEvent.php
18:class ModuleEvent extends Event

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options