From 91e7f12088cb87ffef5660429ece404364167978 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 16 Jul 2020 17:08:03 +0200 Subject: Adjust apps' code to use the ContainerInterface Signed-off-by: Christoph Wurst --- apps/twofactor_backupcodes/lib/AppInfo/Application.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/twofactor_backupcodes/lib') 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'])); } /** -- cgit v1.2.3