From: Morris Jobke Date: Thu, 26 Nov 2015 17:20:25 +0000 (+0100) Subject: Add full interface of server container as alias X-Git-Tag: v9.0beta1~658^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7aed59295772ca9184263e61777e3a5bc13259f1;p=nextcloud-server.git Add full interface of server container as alias --- 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();