On Wed, Apr 3, 2013 at 9:51 PM, Jeroen De Dauw jeroendedauw@gmail.com wrote:
Hey,
I'm curious what the list thinks of deprecating and eventually removing the Hooks class. Some relevant info:
/**
- Hooks class.
- Used to supersede $wgHooks, because globals are EVIL.
- @since 1.18
*/
https://github.com/wikimedia/mediawiki-core/blob/master/includes/Hooks.php#L...
I personally find the comment hilarious and hope you see why when looking at the "class". Looks like usage in core and extensions is not to extensive, so switching to something more sane seems quite feasible.
It's like a global, only slower :D
If you've got any better ideas, I'm all for it.
-Chad