Hi all. There are three technical RFCs for adding to core MediaWiki some code that came out of work on Editor Campaigns:
https://www.mediawiki.org/wiki/Requests_for_comment/Typesafe_enums https://www.mediawiki.org/wiki/Requests_for_comment/Dependency_injection https://www.mediawiki.org/wiki/Requests_for_comment/Data_mapper
The first of these RFCs was discussed once on IRC and there is work to be done on it following that discussion, including some benchmarking. The other two haven't been discussed formally yet. I am glad that the RfCs' authors got initial version of all three out the door before doing further work on the enums just to put everything out there, in case anyone is working on something related.
I suggest you take a look at the data mapper and dependency injection RfCs. For DI: check verbosity, flexibility, and whether it'd work for your use cases. For the data mapper: it's basically an object-relational mapper that would isolate database access in a less active-record-y way, so see whether you agree with this approach.
Sumana Harihareswara Senior Technical Writer Wikimedia Foundation