Was already registered in Server
The DIContainaer will query server anyways if it can't find it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4ba709bb71
commit
421a40e7db
1 changed files with 0 additions and 3 deletions
|
@ -125,9 +125,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
||||||
return new OC\AppFramework\Logger($this->server->query(ILogger::class), $c->query('AppName'));
|
return new OC\AppFramework\Logger($this->server->query(ILogger::class), $c->query('AppName'));
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->registerAlias(\OCP\AppFramework\Utility\IControllerMethodReflector::class, \OC\AppFramework\Utility\ControllerMethodReflector::class);
|
|
||||||
$this->registerAlias('ControllerMethodReflector', \OCP\AppFramework\Utility\IControllerMethodReflector::class);
|
|
||||||
|
|
||||||
$this->registerService(IRequest::class, function() {
|
$this->registerService(IRequest::class, function() {
|
||||||
return $this->getServer()->query(IRequest::class);
|
return $this->getServer()->query(IRequest::class);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue