Page MenuHomePhabricator

Port Flow to new core dependency injection container
Open, Needs TriagePublic

Description

Flow started using dependency injection (DI) before core. However, core now has a dependency injection component (MediaWikiServices), so we should port Flow to use it.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Legoktm subscribed.

I started working on this last week because it'll let us get rid of the pimple dependency.

I feel like I've reviewed most of the relevant code, I think the biggest problem right now is PurgeAction, which destroys the entire container, installs a fake memcached, queries a bunch of stuff, then examines the memcache keys that would have been set, and uses those as a list of keys to purge.

I feel like I've reviewed most of the relevant code, I think the biggest problem right now is PurgeAction, which destroys the entire container, installs a fake memcached, queries a bunch of stuff, then examines the memcache keys that would have been set, and uses those as a list of keys to purge.

I'm giving up for now because I don't want to figure out how to fix this.