I have one question about the assignment of Events to a Component.
Is it possible to assign Events to a Component in the same way as Actions are assigned to Controllers?
public function actions()
Do you mean define an event like defining an action in controller? Could you explain why you want to do so?
Yes, perhaps its just for convenience, to be able to do the same with events as with actions in controllers. Something like programming Events as own class and assigning them to the component like:
public function events()
Or doesn't make that sense? I didn't dig much into the event handling code and don't know by now how they are handled.
this just seems to be a shortcut to define event. It is inconvenent to inherit event though.