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 "EVENTSENDRESPONSE" event.

MvcEvent defines "EVENTBOOTSTRAP", "EVENTDISPATCH", "EVENTDISPATCHERROR", "EVENTFINISH", "EVENTRENDER", "EVENTRENDERERROR" and "EVENTROUTE" event.

ViewEvent defines "EVENT
RENDERER", "EVENTRENDERERPOST" and "EVENTRESPONSE".
The ModuleEvent defines "EVENT
LOADMODULES", "EVENTLOADMODULESRESOLVE", "EVENTLOADMODULE" and the "EVENTLOADMODULE_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

Translate to de es fr it pt ja