aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-27 13:16:28 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-27 13:16:28 +0100
commitdf4bd322b20009b50b9cdb8897cf5295732147ae (patch)
tree75f1a1c8fca6ea817fa8e0d02d12a32c63fb3c4c
parent1d30f0fcdb38f82d7b5a79cb334a1f670b01d846 (diff)
parent7aed59295772ca9184263e61777e3a5bc13259f1 (diff)
downloadnextcloud-server-df4bd322b20009b50b9cdb8897cf5295732147ae.tar.gz
nextcloud-server-df4bd322b20009b50b9cdb8897cf5295732147ae.zip
Merge pull request #20770 from owncloud/add-servercontainer-alias
Add full interface of server container as alias
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index a32d32fefc5..eeab9b96e59 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -225,6 +225,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
$this->registerService('ServerContainer', function ($c) {
return $this->getServer();
});
+ $this->registerAlias('OCP\\IServerContainer', 'ServerContainer');
$this->registerService('Symfony\Component\EventDispatcher\EventDispatcherInterface', function ($c) {
return $this->getServer()->getEventDispatcher();