aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-11-16 20:57:41 +0100
committerLukas Reschke <lukas@owncloud.com>2015-11-16 21:10:11 +0100
commitdaa388ce8d8ea653d3cae2e016cabd266d19d674 (patch)
treea59d35736549945654460e7746f37db0aea185c5 /lib
parent5ec64c4fd7f087027ef945c4d694de1d90bbd814 (diff)
downloadnextcloud-server-daa388ce8d8ea653d3cae2e016cabd266d19d674.tar.gz
nextcloud-server-daa388ce8d8ea653d3cae2e016cabd266d19d674.zip
Move index.php from files to AppFramework
1. Allows it to use the more secure CSP rules of the AppFramework. 2. Adds some unit tests.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index b0be4045541..a32d32fefc5 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -226,6 +226,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer();
});
+ $this->registerService('Symfony\Component\EventDispatcher\EventDispatcherInterface', function ($c) {
+ return $this->getServer()->getEventDispatcher();
+ });
+
$this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
return $c;
});