]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add full interface of server container as alias
authorMorris Jobke <hey@morrisjobke.de>
Thu, 26 Nov 2015 17:20:25 +0000 (18:20 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 26 Nov 2015 17:20:25 +0000 (18:20 +0100)
lib/private/appframework/dependencyinjection/dicontainer.php

index a32d32fefc58a42db994ce2dd88a24be552f62d7..eeab9b96e597861eea6f1610bea39c5be235f0a2 100644 (file)
@@ -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();