HomePhabricator

Introduce NameTableStoreFactory

Description

Introduce NameTableStoreFactory

With a separate service for each of the NameTableStore tables, it
wasn't possible to instantiate a NameTableStore for a foreign wiki,
leading to the inelegant situation of having RevisionStoreFactory
construct a new NameTableStoreFactory every time a RevisionStore for a
foreign wiki was requested. These NameTableStore objects were not
tracked in any structured way, so there was no way to reset them for
tests.

So, introduce NameTableStoreFactory, which tracks object instances for
both local and remote table access.

This also avoids having schema details in ServiceWiring.php.

Depends-On: I5c78cfb8bf90eca935a3264592366f63517c4fad
Bug: T202641
Change-Id: Ic0f2d1d94bad9dcc047ff19a1f92db89b7e014ce

Details

Provenance
tstarlingAuthored on Sep 4 2018, 1:59 AM
Parents
rMW1dc2212bc68c: Merge "Don't save and restore the interwiki table"
Branches
Unknown
Tags
Unknown
ChangeId
Ic0f2d1d94bad9dcc047ff19a1f92db89b7e014ce