pay/tests/Stubs/FooServiceProviderStub.php
yansongda afcd6293ac
refactor: v3.1 (#579)
refactor: 去掉 phpdi 依赖 #573
refactor: 完全支持 psr/container 标准 #574
feat: 自动识别 laravel, hyperf, thinkphp 的 container #577
fix: laravel项目安装失败 #571
feat: 兼容 php8.1 解决 deprecated #582
2022-03-05 21:59:11 +08:00

20 lines
385 B
PHP

<?php
declare(strict_types=1);
namespace Yansongda\Pay\Tests\Stubs;
use Yansongda\Pay\Contract\ServiceProviderInterface;
use Yansongda\Pay\Pay;
class FooServiceProviderStub implements ServiceProviderInterface
{
/**
* @throws \Yansongda\Pay\Exception\ContainerException
*/
public function register($data = null): void
{
Pay::set('foo', 'bar');
}
}