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