init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
21
addons/shopro/facade/HttpClient.php
Normal file
21
addons/shopro/facade/HttpClient.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\facade;
|
||||
|
||||
use addons\shopro\library\HttpClient as HttpClientManager;
|
||||
|
||||
/**
|
||||
* @see HttpClientManager
|
||||
*
|
||||
*/
|
||||
class HttpClient extends Base
|
||||
{
|
||||
public static function getFacadeClass()
|
||||
{
|
||||
if (!isset($GLOBALS['SPHTTPCLIENT'])) {
|
||||
$GLOBALS['SPHTTPCLIENT'] = new HttpClientManager();
|
||||
}
|
||||
|
||||
return $GLOBALS['SPHTTPCLIENT'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user