mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-02 12:17:38 +08:00
afcd6293ac
refactor: 去掉 phpdi 依赖 #573 refactor: 完全支持 psr/container 标准 #574 feat: 自动识别 laravel, hyperf, thinkphp 的 container #577 fix: laravel项目安装失败 #571 feat: 兼容 php8.1 解决 deprecated #582
20 lines
385 B
PHP
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');
|
|
}
|
|
}
|