Use \OCP\IContainer::injectFn to boot the admin_audit app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
58b8b00798
commit
9993a3b839
|
@ -33,6 +33,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace OCA\AdminAudit\AppInfo;
|
namespace OCA\AdminAudit\AppInfo;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
use OC\Files\Filesystem;
|
use OC\Files\Filesystem;
|
||||||
use OC\Files\Node\File;
|
use OC\Files\Node\File;
|
||||||
use OC\Group\Manager;
|
use OC\Group\Manager;
|
||||||
|
@ -78,10 +79,9 @@ class Application extends App implements IBootstrap {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function boot(IBootContext $context): void {
|
public function boot(IBootContext $context): void {
|
||||||
$logger = $this->getLogger(
|
/** @var ILogger $logger */
|
||||||
$context->getAppContainer()->query(IConfig::class),
|
$logger = $context->injectFn(
|
||||||
$context->getAppContainer()->query(ILogger::class),
|
Closure::fromCallable([$this, 'getLogger'])
|
||||||
$context->getAppContainer()->query(ILogFactory::class)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue