mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #20770 from owncloud/add-servercontainer-alias
Add full interface of server container as alias
This commit is contained in:
commit
df4bd322b2
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue