44use Psr\Log\LoggerInterface;
73 private $revisionStore;
76 private $revisionRenderer;
79 private $slotRoleRegistry;
85 private $jobQueueGroup;
88 private $messageCache;
94 private $loadbalancerFactory;
97 private $contentHandlerFactory;
100 private $hookContainer;
103 private $editResultCache;
106 private $userNameUtils;
115 private $userEditTracker;
118 private $userGroupManager;
121 private $titleFormatter;
124 private $contentTransformer;
127 private $pageEditStash;
130 private $talkPageNotificationManager;
133 private $mainWANObjectCache;
136 private $permissionManager;
139 private $wikiPageFactory;
142 private $softwareTags;
183 LoggerInterface $logger,
198 $this->revisionStore = $revisionStore;
199 $this->revisionRenderer = $revisionRenderer;
200 $this->slotRoleRegistry = $slotRoleRegistry;
201 $this->parserCache = $parserCache;
202 $this->jobQueueGroup = $jobQueueGroup;
203 $this->messageCache = $messageCache;
204 $this->contLang = $contLang;
205 $this->loadbalancerFactory = $loadbalancerFactory;
206 $this->contentHandlerFactory = $contentHandlerFactory;
207 $this->hookContainer = $hookContainer;
208 $this->editResultCache = $editResultCache;
209 $this->userNameUtils = $userNameUtils;
210 $this->logger = $logger;
211 $this->options = $options;
212 $this->userEditTracker = $userEditTracker;
213 $this->userGroupManager = $userGroupManager;
214 $this->titleFormatter = $titleFormatter;
215 $this->contentTransformer = $contentTransformer;
216 $this->pageEditStash = $pageEditStash;
217 $this->talkPageNotificationManager = $talkPageNotificationManager;
218 $this->mainWANObjectCache = $mainWANObjectCache;
219 $this->permissionManager = $permissionManager;
220 $this->softwareTags = $softwareTags;
221 $this->wikiPageFactory = $wikiPageFactory;
242 $page = $this->wikiPageFactory->newFromTitle( $page );
272 $derivedPageDataUpdater,
273 $this->loadbalancerFactory,
274 $this->revisionStore,
275 $this->slotRoleRegistry,
276 $this->contentHandlerFactory,
277 $this->hookContainer,
278 $this->userEditTracker,
279 $this->userGroupManager,
280 $this->titleFormatter,
291 $pageUpdater->setUseAutomaticEditSummaries(
310 $this->revisionStore,
311 $this->revisionRenderer,
312 $this->slotRoleRegistry,
314 $this->jobQueueGroup,
317 $this->loadbalancerFactory,
318 $this->contentHandlerFactory,
319 $this->hookContainer,
320 $this->editResultCache,
321 $this->userNameUtils,
322 $this->contentTransformer,
323 $this->pageEditStash,
324 $this->talkPageNotificationManager,
325 $this->mainWANObjectCache,
326 $this->permissionManager
329 $derivedDataUpdater->
setLogger( $this->logger );
330 $derivedDataUpdater->setArticleCountMethod(
331 $this->options->get( MainConfigNames::ArticleCountMethod ) );
332 $derivedDataUpdater->setRcWatchCategoryMembership(
333 $this->options->get( MainConfigNames::RCWatchCategoryMembership )
336 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.
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.
__construct(RevisionStore $revisionStore, RevisionRenderer $revisionRenderer, SlotRoleRegistry $slotRoleRegistry, ParserCache $parserCache, 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)
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.