Use RevisionLookup and RevisionFactory interfaces in Revision
authoraddshore <addshorewiki@gmail.com>
Tue, 9 Jan 2018 08:53:38 +0000 (08:53 +0000)
committeraddshore <addshorewiki@gmail.com>
Wed, 24 Jan 2018 22:11:31 +0000 (14:11 -0800)
commitd3c721fd28a61642be647c8cdf0b90490e6e43f9
tree05d4a95bd96b0ad8b6942619954db3887a9af867
parent94d4584d778618387f19d649e7f9227536efc4e7
Use RevisionLookup and RevisionFactory interfaces in Revision

Lets not depend on the big blob that is RevisionStore.
Try to bind to the nice interfaces that we have where possible.

In the future RevisionStore should be split up further into
it's individual interfaces.

It looks like there are some more methods which should be moved
to both RevisionLookup and RevisionFactory.
See draft:
I214c5952d4a0fad55ff4116e90eab9ac3ba54fd3

Change-Id: I8df61374e24abcf4a7e38e53647489b8ecc1fd77
includes/MediaWikiServices.php
includes/Revision.php
includes/ServiceWiring.php
tests/phpunit/includes/MediaWikiServicesTest.php