Request is already regsitered in the Server container

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/12185/head
Roeland Jago Douma 7 years ago
parent 421a40e7db
commit 61adb513fe
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 5
      lib/private/AppFramework/DependencyInjection/DIContainer.php

@ -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…
Cancel
Save