aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-29 16:09:58 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-03 14:37:53 +0200
commit9993a3b839a4354a2ccf67d4aac53922c2de9b54 (patch)
tree0feca08450de4fda6a4b37e6e3c568e0088669f7
parent58b8b00798fcee45f355ec043483be50a352a6eb (diff)
downloadnextcloud-server-9993a3b839a4354a2ccf67d4aac53922c2de9b54.tar.gz
nextcloud-server-9993a3b839a4354a2ccf67d4aac53922c2de9b54.zip
Use \OCP\IContainer::injectFn to boot the admin_audit app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--apps/admin_audit/lib/AppInfo/Application.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php
index dde0605103c..6c79aef84c8 100644
--- a/apps/admin_audit/lib/AppInfo/Application.php
+++ b/apps/admin_audit/lib/AppInfo/Application.php
@@ -33,6 +33,7 @@ declare(strict_types=1);
namespace OCA\AdminAudit\AppInfo;
+use Closure;
use OC\Files\Filesystem;
use OC\Files\Node\File;
use OC\Group\Manager;
@@ -78,10 +79,9 @@ class Application extends App implements IBootstrap {
}
public function boot(IBootContext $context): void {
- $logger = $this->getLogger(
- $context->getAppContainer()->query(IConfig::class),
- $context->getAppContainer()->query(ILogger::class),
- $context->getAppContainer()->query(ILogFactory::class)
+ /** @var ILogger $logger */
+ $logger = $context->injectFn(
+ Closure::fromCallable([$this, 'getLogger'])
);
/*