summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-30 16:14:00 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:14 +0100
commit1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0 (patch)
tree53e05383e3564808815d81ae205ccb071e28b0f0 /core/Application.php
parentbd5bcd2d8d32f2f7422ecc47caddda69a92d525e (diff)
downloadnextcloud-server-1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0.tar.gz
nextcloud-server-1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0.zip
No need for the CssManager
* It is a simple wrapper we can always add it later if needed Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/Application.php b/core/Application.php
index ec93c50b445..dad7546dcb8 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -30,11 +30,11 @@
namespace OC\Core;
-use OC\AppFramework\Utility\SimpleContainer;
-use OC\CssManager;
use OC\Security\IdentityProof\Manager;
use OCP\AppFramework\App;
-use OCP\Files\IAppData;
+use OC\Core\Controller\CssController;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\IRequest;
use OCP\Util;
/**
@@ -58,8 +58,13 @@ class Application extends App {
\OC::$server->getCrypto()
);
});
- $container->registerService(CssManager::class, function () {
- return new CssManager(\OC::$server->getAppDataDir('css'));
+ $container->registerService(CssController::class, function () use ($container) {
+ return new CssController(
+ $container->query('appName'),
+ $container->query(IRequest::class),
+ \OC::$server->getAppDataDir('css'),
+ $container->query(ITimeFactory::class)
+ );
});
}
}