Skip to content

Commit fa3e667

Browse files
plandoltscheb
authored andcommitted
use implementation for backup code manager interface
1 parent 68cb2c4 commit fa3e667

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bundle/Resources/config/backup_codes.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Scheb\TwoFactorBundle\Security\Http\EventListener\CheckBackupCodeListener;
66
use Scheb\TwoFactorBundle\Security\TwoFactor\Backup\BackupCodeManager;
7+
use Scheb\TwoFactorBundle\Security\TwoFactor\Backup\BackupCodeManagerInterface;
78
use Scheb\TwoFactorBundle\Security\TwoFactor\Backup\NullBackupCodeManager;
89
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
910
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
@@ -21,5 +22,7 @@
2122
service('scheb_two_factor.provider_preparation_recorder'),
2223
service('scheb_two_factor.backup_code_manager'),
2324
service('event_dispatcher'),
24-
]);
25+
])
26+
27+
->alias(BackupCodeManagerInterface::class, 'scheb_two_factor.default_backup_code_manager');
2528
};

0 commit comments

Comments
 (0)