Request is already regsitered in the Server container
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
421a40e7db
commit
61adb513fe
1 changed files with 0 additions and 5 deletions
|
@ -125,11 +125,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
return new OC\AppFramework\Logger($this->server->query(ILogger::class), $c->query('AppName'));
|
||||
});
|
||||
|
||||
$this->registerService(IRequest::class, function() {
|
||||
return $this->getServer()->query(IRequest::class);
|
||||
});
|
||||
$this->registerAlias('Request', IRequest::class);
|
||||
|
||||
$this->registerAlias(\OCP\AppFramework\Utility\ITimeFactory::class, \OC\AppFramework\Utility\TimeFactory::class);
|
||||
$this->registerAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class);
|
||||
|
||||
|
|
Loading…
Reference in a new issue