Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
namespace OCA\AdminAudit\AppInfo;
+use Closure;
use OC\Files\Filesystem;
use OC\Files\Node\File;
use OC\Group\Manager;
}
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'])
);
/*