Page MenuHomePhabricator

WikiLambda extension: improve dependency injection
Open, MediumPublic

Description

Description

Some services could benefit from mocks. For example ZObjectStore (see https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1141442)
However, for this, we should fully dependency-inject the ZObjectStore wherever we use it.

We generally use our Wikilambda Service Wiring to get ZObjectStore. The following static getter is used in more than 30 places in our stack:

WikiLambdaServices::getZObjectStore()

Desired behavior/Acceptance criteria


Completion checklist