linkRenderer = $linkRenderer; $this->linkBatchFactory = $linkBatchFactory; $this->threadItemStore = $threadItemStore; $this->threadItemFormatter = $threadItemFormatter; } /** * @inheritDoc * @throws ErrorPageError */ public function execute( $subpage ) { $this->requireNamedUser(); parent::execute( $subpage ); $this->getOutput()->addModules( [ 'ext.discussionTools.init' ] ); $this->getOutput()->addHtml( $this->msg( 'discussiontools-topicsubscription-special-intro' )->parseAsBlock() ); $this->getOutput()->enableOOUI(); $pager = new TopicSubscriptionsPager( $this->getContext(), $this->linkRenderer, $this->linkBatchFactory, $this->threadItemStore, $this->threadItemFormatter ); $this->getOutput()->addParserOutputContent( $pager->getFullOutput() ); } /** * @inheritDoc */ public function getDescription() { return $this->msg( 'discussiontools-topicsubscription-special-title' ); } /** * @inheritDoc */ protected function getGroupName() { return 'login'; } }