Requests for comment/Inventory hooks, assess need

From MediaWiki.org
Jump to navigation Jump to search
Request for comment (RFC)
Inventory hooks, assess need
Component General
Creation date 2014-05-10
Author(s) ^demon
Document status in draft
General2014-05-10^demon

Background[edit]

MediaWiki currently has many hundred hook calls. Many were introduced with little discussion or consideration and are rarely used.

Problem[edit]

Hooks make code hard to test, hard to debug, and tend to be rather single-use in their implementation.

Proposal[edit]

We should inventory all of our hooks. See which ones are being used and are necessary. Can some of them possibly be rethought or replaced?