|
@@ 647-654 (lines=8) @@
|
| 644 |
|
); |
| 645 |
|
}); |
| 646 |
|
$this->registerAlias('HttpClientService', \OCP\Http\Client\IClientService::class); |
| 647 |
|
$this->registerService(\OCP\Diagnostics\IEventLogger::class, function (Server $c) { |
| 648 |
|
$eventLogger = new EventLogger(); |
| 649 |
|
if ($c->getSystemConfig()->getValue('debug', false)) { |
| 650 |
|
// In debug mode, module is being activated by default |
| 651 |
|
$eventLogger->activate(); |
| 652 |
|
} |
| 653 |
|
return $eventLogger; |
| 654 |
|
}); |
| 655 |
|
$this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class); |
| 656 |
|
|
| 657 |
|
$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) { |
|
@@ 657-664 (lines=8) @@
|
| 654 |
|
}); |
| 655 |
|
$this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class); |
| 656 |
|
|
| 657 |
|
$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) { |
| 658 |
|
$queryLogger = new QueryLogger(); |
| 659 |
|
if ($c->getSystemConfig()->getValue('debug', false)) { |
| 660 |
|
// In debug mode, module is being activated by default |
| 661 |
|
$queryLogger->activate(); |
| 662 |
|
} |
| 663 |
|
return $queryLogger; |
| 664 |
|
}); |
| 665 |
|
$this->registerAlias('QueryLogger', \OCP\Diagnostics\IQueryLogger::class); |
| 666 |
|
|
| 667 |
|
$this->registerService(TempManager::class, function (Server $c) { |