コード例 #1
0
ファイル: Factory.php プロジェクト: rcambien/metrics
 public static function getHttpClient()
 {
     if (self::$httpClient === null) {
         self::$httpClient = new Browser();
     }
     return self::$httpClient;
 }
コード例 #2
0
ファイル: Factory.php プロジェクト: abreksa4/metrics
 private static function getHttpClient()
 {
     if (self::$httpClient === null) {
         self::$httpClient = new Browser(new Curl());
     }
     return self::$httpClient;
 }