Add hooks for WatchedItemQueryService / ApiQueryWatchlist
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 11 Oct 2016 20:17:22 +0000 (16:17 -0400)
committerAddshore <addshorewiki@gmail.com>
Thu, 3 Nov 2016 11:41:40 +0000 (11:41 +0000)
commit715cbe468ba52af5e7cac75008147bce03deb651
treeeb01b132f616ca8d20a10f7b13d55dc835cd0467
parentf40e4c6b367fcf0e3e10b1d08d716f3382f4b755
Add hooks for WatchedItemQueryService / ApiQueryWatchlist

In order for an extension to add data to ApiQueryWatchlist, we need to
provide a way to allow it to manipulate the database query made by
WatchedItemQueryService. We also need some hooks in ApiQueryWatchlist to
handle the marshalling of data to and from WatchedItemQueryService.

To better handle hooking, this also moves some of the continuation logic
from ApiQueryWatchlist to WatchedItemQueryService.

Bug: T147939
Change-Id: Ie45376980f92da964a579887b28175c00fd8f57e
autoload.php
docs/hooks.txt
includes/WatchedItemQueryService.php
includes/WatchedItemQueryServiceExtension.php [new file with mode: 0644]
includes/api/ApiQueryWatchlist.php
tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php