Last modified: 2014-08-10 21:10:55 UTC
There are a lot of static funcitons in SpecialBlock so that the API can also re-use the same code which makes this difficult. Might need some more refactoring...?
Static function SpecialBlock::processForm has a context source as param, which can provide a config object, but all the other functions needs another way to do.
Change 153266 had a related patch set uploaded by Florianschmidtwelzow: WIP: Special:Block: Use config object instead of globals https://gerrit.wikimedia.org/r/153266
Change 153266 abandoned by Florianschmidtwelzow: WIP: Special:Block: Use config object instead of globals Reason: maybe first think about and then do something :/ https://gerrit.wikimedia.org/r/153266