summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-03-22 14:47:07 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-24 10:58:10 +0100
commit8e89ad21a2dfa8f4f147225ae35cab83db4de2f9 (patch)
tree5c991eec18452d8da40ddedd6c8e372b77428223 /core/Application.php
parent35d3a082f2a7256c104894faf6820a1410a0a38e (diff)
downloadnextcloud-server-8e89ad21a2dfa8f4f147225ae35cab83db4de2f9.tar.gz
nextcloud-server-8e89ad21a2dfa8f4f147225ae35cab83db4de2f9.zip
[PoC] JS Combiner
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 6621964c289..33b7dd1b333 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -30,6 +30,8 @@
namespace OC\Core;
+use OC\AppFramework\Utility\SimpleContainer;
+use OC\Core\Controller\JsController;
use OC\Core\Controller\OCJSController;
use OC\Security\IdentityProof\Manager;
use OC\Server;
@@ -87,5 +89,13 @@ class Application extends App {
$server->getURLGenerator()
);
});
+ $container->registerService(JsController::class, function () use ($container) {
+ return new JsController(
+ $container->query('AppName'),
+ $container->query(IRequest::class),
+ $container->getServer()->getAppDataDir('js'),
+ $container->query(ITimeFactory::class)
+ );
+ });
}
}