From 7aed59295772ca9184263e61777e3a5bc13259f1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 26 Nov 2015 18:20:25 +0100 Subject: [PATCH] Add full interface of server container as alias --- lib/private/appframework/dependencyinjection/dicontainer.php | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5