aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-16 17:08:03 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-21 20:43:18 +0200
commit91e7f12088cb87ffef5660429ece404364167978 (patch)
treebaf44ebc7b240bd49eb0f6bf615cbb1ed99d13db /apps/twofactor_backupcodes
parente029055e766298c5852eedabf06ff42b06a50198 (diff)
downloadnextcloud-server-91e7f12088cb87ffef5660429ece404364167978.tar.gz
nextcloud-server-91e7f12088cb87ffef5660429ece404364167978.zip
Adjust apps' code to use the ContainerInterface
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/twofactor_backupcodes')
-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']));
}
/**