aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-22 20:38:50 +0200
committerGitHub <noreply@github.com>2020-07-22 20:38:50 +0200
commit346f647962e00b1f5e5f19a8526c88a09ebca59e (patch)
tree64f324cb5ff04f29247bf00f32e84bc7c8f4ed36 /apps/twofactor_backupcodes
parentc842678f0a1fb65981a03302895192ddc58479c9 (diff)
parent7870ca06637453f4e72dbd67edbfb3603d813196 (diff)
downloadnextcloud-server-346f647962e00b1f5e5f19a8526c88a09ebca59e.tar.gz
nextcloud-server-346f647962e00b1f5e5f19a8526c88a09ebca59e.zip
Merge pull request #21870 from nextcloud/fix/bootstrap-context-container-interfaces
Make the bootstrap context return ContainerInterface instances
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']));
}
/**