self::$dice = $dice;
}
+ /**
+ * Returns a clone of the current dice instance
+ * This usefull for overloading the current instance with mocked methods during tests
+ *
+ * @return Dice
+ */
+ public static function getDice()
+ {
+ return clone self::$dice;
+ }
+
//
// common instances
//
//
/**
- * @return Network\IHTTPRequest
+ * @return Network\IHTTPClient
*/
- public static function httpRequest()
+ public static function httpClient()
{
- return self::$dice->create(Network\IHTTPRequest::class);
+ return self::$dice->create(Network\IHTTPClient::class);
}
//