Config.php 416B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Aliyun\Core;
  3. use Aliyun\Core\Regions\EndpointConfig;
  4. //config http proxy
  5. define('ENABLE_HTTP_PROXY', FALSE);
  6. define('HTTP_PROXY_IP', '127.0.0.1');
  7. define('HTTP_PROXY_PORT', '8888');
  8. class Config
  9. {
  10. private static $loaded = false;
  11. public static function load(){
  12. if(self::$loaded) {
  13. return;
  14. }
  15. EndpointConfig::load();
  16. self::$loaded = true;
  17. }
  18. }