Jump to content

Requests for comment/Inventory hooks, assess need

From mediawiki.org
Request for comment (RFC)
Inventory hooks, assess need
Component General
Creation date
Author(s) ^demon
Document status in draft

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?