Add full interface of server container as alias

This commit is contained in:
Morris Jobke 2015-11-26 18:20:25 +01:00
parent 8fe878afe9
commit 7aed592957
1 changed files with 1 additions and 0 deletions

View 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();