44use Psr\Log\LoggerInterface;
74 private $revisionStore;
77 private $revisionRenderer;
80 private $slotRoleRegistry;
86 private $jobQueueGroup;
89 private $messageCache;
95 private $loadbalancerFactory;
98 private $contentHandlerFactory;
101 private $hookContainer;
104 private $editResultCache;
107 private $userNameUtils;
116 private $userEditTracker;
119 private $userGroupManager;
122 private $titleFormatter;
125 private $contentTransformer;
128 private $pageEditStash;
131 private $talkPageNotificationManager;
134 private $mainWANObjectCache;
137 private $permissionManager;
140 private $wikiPageFactory;
143 private $softwareTags;
146 private $parsoidOutputAccess;
189 LoggerInterface $logger,
204 $this->revisionStore = $revisionStore;
205 $this->revisionRenderer = $revisionRenderer;
206 $this->slotRoleRegistry = $slotRoleRegistry;
207 $this->parserCache = $parserCache;
208 $this->parsoidOutputAccess = $parsoidOutputAccess;
209 $this->jobQueueGroup = $jobQueueGroup;
210 $this->messageCache = $messageCache;
211 $this->contLang = $contLang;
212 $this->loadbalancerFactory = $loadbalancerFactory;
213 $this->contentHandlerFactory = $contentHandlerFactory;
214 $this->hookContainer = $hookContainer;
215 $this->editResultCache = $editResultCache;
216 $this->userNameUtils = $userNameUtils;
217 $this->logger = $logger;
218 $this->options = $options;
219 $this->userEditTracker = $userEditTracker;
220 $this->userGroupManager = $userGroupManager;
221 $this->titleFormatter = $titleFormatter;
222 $this->contentTransformer = $contentTransformer;
223 $this->pageEditStash = $pageEditStash;
224 $this->talkPageNotificationManager = $talkPageNotificationManager;
225 $this->mainWANObjectCache = $mainWANObjectCache;
226 $this->permissionManager = $permissionManager;
227 $this->softwareTags = $softwareTags;
228 $this->wikiPageFactory = $wikiPageFactory;
249 $page = $this->wikiPageFactory->newFromTitle( $page );
279 $derivedPageDataUpdater,
280 $this->loadbalancerFactory->getMainLB(),
281 $this->revisionStore,
282 $this->slotRoleRegistry,
283 $this->contentHandlerFactory,
284 $this->hookContainer,
285 $this->userEditTracker,
286 $this->userGroupManager,
287 $this->titleFormatter,
298 $pageUpdater->setUseAutomaticEditSummaries(
317 $this->revisionStore,
318 $this->revisionRenderer,
319 $this->slotRoleRegistry,
321 $this->parsoidOutputAccess,
322 $this->jobQueueGroup,
325 $this->loadbalancerFactory,
326 $this->contentHandlerFactory,
327 $this->hookContainer,
328 $this->editResultCache,
329 $this->userNameUtils,
330 $this->contentTransformer,
331 $this->pageEditStash,
332 $this->talkPageNotificationManager,
333 $this->mainWANObjectCache,
334 $this->permissionManager
337 $derivedDataUpdater->
setLogger( $this->logger );
338 $derivedDataUpdater->setArticleCountMethod(
339 $this->options->get( MainConfigNames::ArticleCountMethod ) );
340 $derivedDataUpdater->setRcWatchCategoryMembership(
341 $this->options->get( MainConfigNames::RCWatchCategoryMembership )
344 return $derivedDataUpdater;
Handle enqueueing of background jobs.
Base class for language-specific code.
A service to transform content.
A class containing constants representing the names of configuration variables.
const UseRCPatrol
Name constant for the UseRCPatrol setting, for use with Config::get()
const ArticleCountMethod
Name constant for the ArticleCountMethod setting, for use with Config::get()
const ManualRevertSearchRadius
Name constant for the ManualRevertSearchRadius setting, for use with Config::get()
const PageCreationLog
Name constant for the PageCreationLog setting, for use with Config::get()
const RCWatchCategoryMembership
Name constant for the RCWatchCategoryMembership setting, for use with Config::get()
const ParsoidCacheConfig
Name constant for the ParsoidCacheConfig setting, for use with Config::get()
const UseAutomaticEditSummaries
Name constant for the UseAutomaticEditSummaries setting, for use with Config::get()
Service for creating WikiPage objects.
A handle for managing updates for derived page data on edit, import, purge, etc.
setLogger(LoggerInterface $logger)
Manage the pre-emptive page parsing for edits to wiki pages.
A factory for PageUpdater and DerivedPageDataUpdater instances.
__construct(RevisionStore $revisionStore, RevisionRenderer $revisionRenderer, SlotRoleRegistry $slotRoleRegistry, ParserCache $parserCache, ParsoidOutputAccess $parsoidOutputAccess, JobQueueGroup $jobQueueGroup, MessageCache $messageCache, Language $contLang, ILBFactory $loadbalancerFactory, IContentHandlerFactory $contentHandlerFactory, HookContainer $hookContainer, EditResultCache $editResultCache, UserNameUtils $userNameUtils, LoggerInterface $logger, ServiceOptions $options, UserEditTracker $userEditTracker, UserGroupManager $userGroupManager, TitleFormatter $titleFormatter, ContentTransformer $contentTransformer, PageEditStash $pageEditStash, TalkPageNotificationManager $talkPageNotificationManager, WANObjectCache $mainWANObjectCache, PermissionManager $permissionManager, WikiPageFactory $wikiPageFactory, array $softwareTags)
newDerivedPageDataUpdater(WikiPage $page)
newPageUpdaterForDerivedPageDataUpdater(WikiPage $page, UserIdentity $user, DerivedPageDataUpdater $derivedPageDataUpdater)
Return a PageUpdater for building an update to a page, reusing the state of an existing DerivedPageDa...
newPageUpdater(PageIdentity $page, UserIdentity $user)
Return a PageUpdater for building an update to a page.
const CONSTRUCTOR_OPTIONS
Options that have to be present in the ServiceOptions object passed to the constructor.
Controller-like object for creating and updating pages by creating new revisions.
setUsePageCreationLog( $use)
Whether to create a log entry for new page creations.
Manages user talk page notifications.
Cache messages that are defined by MediaWiki-namespace pages or by hooks.
Cache for ParserOutput objects corresponding to the latest page revisions.
Multi-datacenter aware caching interface.
Base representation for an editable wiki page.
Interface for objects (potentially) representing an editable wiki page.