Skip to content
Snippets Groups Projects
Commit df4bd322 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20770 from owncloud/add-servercontainer-alias

Add full interface of server container as alias
parents 1d30f0fc 7aed5929
Branches
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment