diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-11-26 18:20:25 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-11-26 18:20:25 +0100 |
commit | 7aed59295772ca9184263e61777e3a5bc13259f1 (patch) | |
tree | 6aabe0c25d884812fb11ccbf8cf9d1e6e9727e8b | |
parent | 8fe878afe9af165b98470a75203df2f1b32cb68f (diff) | |
download | nextcloud-server-7aed59295772ca9184263e61777e3a5bc13259f1.tar.gz nextcloud-server-7aed59295772ca9184263e61777e3a5bc13259f1.zip |
Add full interface of server container as alias
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 1 |
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(); |