vendor/codeages/biz-framework/src/Provider/TokenServiceProvider.php
(开头部分) 952B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\Biz\Framework\Provider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
class TokenServiceProvider implements ServiceProviderInterface
{
public function register(Container $biz)
{
$biz['token_service.impl'] = isset($biz['token_service.impl']) ? $biz['token_service.impl'] : 'database';
$biz['token_service.gc_divisor'] = isset($biz['token_service.gc_divisor']) ? intval($biz['token_service.gc_divisor']) : 1000;
$biz['@Token:TokenService'] = function ($biz) {
$class = 'Codeages\\Biz\\Framework\\Token\\Service\\Impl\\'.ucfirst($biz['token_service.impl']).'TokenServiceImpl';
return new $class($biz);
};
$biz['autoload.aliases']['Token'] = 'Codeages\\Biz\\Framework\\Token';
$biz['console.commands'][] = function () use ($biz) {
return new \Codeages\Biz\Framework\Token\Command\TableCommand($biz);
};
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。