aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ServiceWiring.php
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2020-11-13 12:46:05 +0100
committerdaniel <dkinzler@wikimedia.org>2020-11-16 12:06:20 +0100
commit175d548e613095e9eae2fe9619493e68ce7361ca (patch)
treedf947c90aee0307e825a5b704ef668642976e0d2 /includes/ServiceWiring.php
parent6c1aa3e7cc9fd995e674fc035c399e6103726fc6 (diff)
downloadmediawikicore-175d548e613095e9eae2fe9619493e68ce7361ca.tar.gz
mediawikicore-175d548e613095e9eae2fe9619493e68ce7361ca.zip
Clean up PoolWorkArticleView
PoolWorkArticleView needs some cleanup before we can make it cache output for old revisiosn (T244058). This patch does doe following: * apply dependency injection * remove backwards compatibility code for legacy constructor calls * mark PoolWorkArticleView as @internal (unused in extensions) * remove audience check (to be done by caller) * no longer set $wgUseFileCache to false. For $wgUseFileCache, it seems like this has had no effect for a long time. It would be set to false only on a cache miss during a page view. But the file cache is only updated via HtmlCacheUpdater on edit and purge. Bug: T244058 Change-Id: Ief467562af0aa2f88ff7b42469d0273d2a1dcf7a
Diffstat (limited to 'includes/ServiceWiring.php')
-rw-r--r--includes/ServiceWiring.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php
index e36c664ae58a..1f4fd2a346f7 100644
--- a/includes/ServiceWiring.php
+++ b/includes/ServiceWiring.php
@@ -946,6 +946,7 @@ return [
'ParserOutputAccess' => function ( MediaWikiServices $services ) : ParserOutputAccess {
return new ParserOutputAccess(
$services->getParserCache(),
+ $services->getRevisionRenderer(),
$services->getStatsdDataFactory()
);
},