mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 04:57:15 +01:00
29 lines
543 B
PHP
29 lines
543 B
PHP
<?php
|
|
|
|
namespace Xentral\Components\Token;
|
|
|
|
use Xentral\Core\DependencyInjection\ContainerInterface;
|
|
|
|
final class Bootstrap
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerServices()
|
|
{
|
|
return [
|
|
'TOTPTokenManager' => 'onInitTOTPTokenManager',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param ContainerInterface $container
|
|
*
|
|
* @return TOTPTokenManager
|
|
*/
|
|
public static function onInitTOTPTokenManager(ContainerInterface $container)
|
|
{
|
|
return new TOTPTokenManager();
|
|
}
|
|
}
|