public function __construct(Configuration $conf, Storages\ISessionStorage $storage = NULL, Http\IClient $client = NULL) { $this->conf = $conf; $this->storage = $storage ?: new Storages\SessionStorage(); $this->client = $client ?: Github\Helpers::createDefaultClient(); }
public function __construct(Storages\ICache $cache, IClient $client = NULL) { $this->cache = $cache; $this->client = $client ?: Github\Helpers::createDefaultClient(); }
/** * @param Storages\ICache * @param IClient * @param bool forbid checking Github for new data; more or less development purpose only */ public function __construct(Storages\ICache $cache, IClient $client = NULL, $forbidRecheck = FALSE) { $this->cache = $cache; $this->client = $client ?: Github\Helpers::createDefaultClient(); $this->forbidRecheck = (bool) $forbidRecheck; }