-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup event #16
Cleanup event #16
Conversation
Hm, I was actually following the function naming and structure Symphony is proposing in it's core events. |
Really? Core events use an execute function? When has this been added? |
I checked my default installation (integration branch). There is no |
Interesting. There is no I still see no reason to use any other function than |
The |
Still, if you want to use |
Maybe one of our code gurus can help: symphonycms/symphonycms@138b779#L0L173 (I hope that emails are sent to the collabs when you add a line note.) |
I thought about this. This code: https://github.com/symphonycms/symphony-2/blob/master/symphony/lib/toolkit/class.event.php#L148 is actually an invitation to overwrite the |
OK, let's wait for brendo here: |
Michael, I agree that less is more here – as long as the As this pull request is out of date: |
No prob, will do it. |
There is no need to put half of the execution code in a separate function, so I copied it into the
__trigger()
function. The function name was wrong anyway (because the event was actually executed before). I also removed some coments, which actually makes the code simpler to read in this case.