aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-26 17:46:42 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-03 15:21:51 +0100
commit7381a81d3041a3460617623028d6e8cfb5391649 (patch)
tree5bee0985b80aa30bf7d925cbee589e8da74d19fc /lib/private/Server.php
parent79e81c15c5beb4174922921083f0e838de9a3bfc (diff)
downloadnextcloud-server-7381a81d3041a3460617623028d6e8cfb5391649.tar.gz
nextcloud-server-7381a81d3041a3460617623028d6e8cfb5391649.zip
Add repair step to clear frontend related caches
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index b12b92272f2..228f0ab5f97 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -112,6 +112,7 @@ use OC\Share20\ProviderFactory;
use OC\Share20\ShareHelper;
use OC\SystemTag\ManagerFactory as SystemTagManagerFactory;
use OC\Tagging\TagMapper;
+use OC\Template\JSCombiner;
use OC\Template\SCSSCacher;
use OCA\Theming\ThemingDefaults;
@@ -967,6 +968,17 @@ class Server extends ServerContainer implements IServerContainer {
$cacheFactory->createDistributed('SCSS')
);
});
+ $this->registerService(JSCombiner::class, function (Server $c) {
+ /** @var Factory $cacheFactory */
+ $cacheFactory = $c->query(Factory::class);
+ return new JSCombiner(
+ $c->getAppDataDir('js'),
+ $c->getURLGenerator(),
+ $cacheFactory->createDistributed('JS'),
+ $c->getSystemConfig(),
+ $c->getLogger()
+ );
+ });
$this->registerService(EventDispatcher::class, function () {
return new EventDispatcher();
});