Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Changes to event architecture in Vanilla
That I want to see is reorganizing code from
to
So we could replace original parts between events using only event handlers by allowing them to set skip flags.
$this->FireEvent('PrimerEvent');
Do something
to
$this->FireEvent('PrimerEvent');
if ($this->$HandleBehaviour != SKIP_ORIGINAL ) {
Do something
}
So we could replace original parts between events using only event handlers by allowing them to set skip flags.
Tagged:
0
Comments
So, it looks pretty on time :-)
Especially in the views part.
Making elegant changes to some output parts improve compatibility with future version.
And it'll be compatible with all current code.
This is my understanding.
If it's in a view, you can also easily override with a theme.
Today I must replace whole PHP file in view folder just to change some flow and design.
And, making every view to be sequence of events and areas in between, that can be skipped, allow me to write simple and plain plugin that replaced only small part retaining very good compatibility with all future changes.
I wasn't suggesting it wouldn't be more convenient for you to have a 'skip' flag, I'm just explaining how to do what you need without making core modifications to Vanilla.
Well see how it goes.