aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/lib/AppInfo/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/lib/AppInfo/Application.php')
-rw-r--r--apps/twofactor_backupcodes/lib/AppInfo/Application.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/twofactor_backupcodes/lib/AppInfo/Application.php b/apps/twofactor_backupcodes/lib/AppInfo/Application.php
index 1941cb545ad..4ac5016f925 100644
--- a/apps/twofactor_backupcodes/lib/AppInfo/Application.php
+++ b/apps/twofactor_backupcodes/lib/AppInfo/Application.php
@@ -28,6 +28,7 @@ declare(strict_types=1);
namespace OCA\TwoFactorBackupCodes\AppInfo;
+use Closure;
use OCA\TwoFactorBackupCodes\Db\BackupCodeMapper;
use OCA\TwoFactorBackupCodes\Event\CodesGenerated;
use OCA\TwoFactorBackupCodes\Listener\ActivityPublisher;
@@ -58,9 +59,7 @@ class Application extends App implements IBootstrap {
public function boot(IBootContext $context): void {
Util::connectHook('OC_User', 'post_deleteUser', $this, 'deleteUser');
- $this->registerNotification(
- $context->getAppContainer()->query(IManager::class)
- );
+ $context->injectFn(Closure::fromCallable([$this, 'registerNotification']));
}
/**