Page MenuHomePhabricator

Run AutoLoader and also LocalSettings before instantiating the maintenance classes
Open, MediumPublicFeature

Description

So we can use shizz in the constructor


Version: unspecified
Severity: enhancement

Details

Reference
bz26143

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:23 PM
bzimport set Reference to bz26143.
bzimport added a subscriber: Unknown Object (MLST).

By the looks of it loadSettings and loadWikimediaSettings can probably be made static... (Though WMF stuff really wants factoring out, bug 26140)

And then just a little bit of organisation

This prevents usage of traits in maintenance scripts, some (like @Legoktm's) PatchFileLocation trait.
A workaround is to manually require_once the necessary traits, but that's ugly, and in my opinion unnecessary.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.