コード例 #1
0
ファイル: Guzzle.php プロジェクト: dthtvwls/padscraper
 static function __callStatic($name, $args)
 {
     if (!self::$client) {
         self::$client = new GuzzleHttp\Client();
     }
     return call_user_func_array([self::$client, $name], $args);
 }
コード例 #2
0
ファイル: Guzzle.php プロジェクト: dthtvwls/chisel
 static function __callStatic($name, $args)
 {
     if (!self::$client) {
         self::$client = new GuzzleHttp\Client(['defaults' => ['timeout' => 10, 'headers' => ['User-Agent' => 'PHP']]]);
     }
     return call_user_func_array([self::$client, $name], $args);
 }