HttpClient.php 408 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\common\facade;
  3. use app\common\library\HttpClient as HttpClientManager;
  4. /**
  5. * @see HttpClientManager
  6. *
  7. */
  8. class HttpClient extends Base
  9. {
  10. public static function getFacadeClass()
  11. {
  12. if (!isset($GLOBALS['SPHTTPCLIENT'])) {
  13. $GLOBALS['SPHTTPCLIENT'] = new HttpClientManager();
  14. }
  15. return $GLOBALS['SPHTTPCLIENT'];
  16. }
  17. }