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 Model\Storage\ISelectableStorage
+ * @return Model\Storage\IWritableStorage
*/
public static function storage()
{
- return self::$dice->create(Model\Storage\ISelectableStorage::class);
+ return self::$dice->create(Model\Storage\IWritableStorage::class);
+ }
+
+ /**
+ * @return Model\Log\ParsedLogIterator
+ */
+ public static function parsedLogIterator()
+ {
+ return self::$dice->create(Model\Log\ParsedLogIterator::class);
}
//
//
/**
- * @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);
}
//