aboutsummaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib/AppInfo/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin_audit/lib/AppInfo/Application.php')
-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'])
);
/*