aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
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();
});