On Wed, Apr 3, 2013 at 9:51 PM, Jeroen De Dauw <[email protected]> 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#L30 > > 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 _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
