OpenXE/classes/Components/Token/Bootstrap.php
2021-05-21 08:49:41 +02:00

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();
}
}