Page MenuHomePhabricator

LoadExtensionSchemaUpdates hook needs to have access to Config
Open, Needs TriagePublic

Description

In multiple extensions (Math, AbuseFilter) schema updates depend on the configuration. It is in general quite a logical thing to do to implement feature flags etc.

However, the hook is marked with noServices, thus MediaWikiServices is not available (which is correct too, hook runs too early)

We should inject a Config object into the hook via its interface.