Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public function __construct(Storages\ICache $cache, IClient $client = NULL)
 {
     $this->cache = $cache;
     $this->client = $client ?: Github\Helpers::createDefaultClient();
 }
Ejemplo n.º 3
0
 /**
  * @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;
 }