diff options
author | Cindy Cicalese <cindom@gmail.com> | 2021-03-26 18:24:43 -0400 |
---|---|---|
committer | Cindy Cicalese <cindom@gmail.com> | 2021-04-07 18:16:24 -0400 |
commit | f1dadbb4cab73da35fbf15b1638dc71a168e1039 (patch) | |
tree | 5670821248dac3184100770d67552c945576bad9 /includes/specials/SpecialWatchlist.php | |
parent | 06b47a82ce49f53a1b8544752050ce72eaf2f1c2 (diff) | |
download | mediawikicore-f1dadbb4cab73da35fbf15b1638dc71a168e1039.tar.gz mediawikicore-f1dadbb4cab73da35fbf15b1638dc71a168e1039.zip |
Rename WatchlistNotificationManager to WatchlistManager
Change-Id: Ic9707c6b74180ef111d128f9f00de218d191c175
Diffstat (limited to 'includes/specials/SpecialWatchlist.php')
-rw-r--r-- | includes/specials/SpecialWatchlist.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index f01f9ebb2fa3..8a5583ea7cc4 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -22,7 +22,7 @@ */ use MediaWiki\User\UserOptionsLookup; -use MediaWiki\User\WatchlistNotificationManager; +use MediaWiki\Watchlist\WatchlistManager; use Wikimedia\Rdbms\IDatabase; use Wikimedia\Rdbms\ILoadBalancer; use Wikimedia\Rdbms\IResultWrapper; @@ -45,8 +45,8 @@ class SpecialWatchlist extends ChangesListSpecialPage { /** @var WatchedItemStoreInterface */ private $watchedItemStore; - /** @var WatchlistNotificationManager */ - private $watchlistNotificationManager; + /** @var WatchlistManager */ + private $watchlistManager; /** @var ILoadBalancer */ private $loadBalancer; @@ -59,20 +59,20 @@ class SpecialWatchlist extends ChangesListSpecialPage { /** * @param WatchedItemStoreInterface $watchedItemStore - * @param WatchlistNotificationManager $watchlistNotificationManager + * @param WatchlistManager $watchlistManager * @param ILoadBalancer $loadBalancer * @param UserOptionsLookup $userOptionsLookup */ public function __construct( WatchedItemStoreInterface $watchedItemStore, - WatchlistNotificationManager $watchlistNotificationManager, + WatchlistManager $watchlistManager, ILoadBalancer $loadBalancer, UserOptionsLookup $userOptionsLookup ) { parent::__construct( 'Watchlist', 'viewmywatchlist' ); $this->watchedItemStore = $watchedItemStore; - $this->watchlistNotificationManager = $watchlistNotificationManager; + $this->watchlistManager = $watchlistManager; $this->loadBalancer = $loadBalancer; $this->userOptionsLookup = $userOptionsLookup; $this->maxDays = $this->getConfig()->get( 'RCMaxAge' ) / ( 3600 * 24 ); @@ -127,7 +127,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { && $request->wasPosted() && $user->matchEditToken( $request->getVal( 'token' ) ) ) { - $this->watchlistNotificationManager->clearAllUserNotifications( $user ); + $this->watchlistManager->clearAllUserNotifications( $user ); $output->redirect( $this->getPageTitle()->getFullURL( $opts->getChangedValues() ) ); return; |