projects
/
pharext
/
pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
use starge driver prefix option
[pharext/pharext.org]
/
app
/
bootstrap
/
github.php
diff --git
a/app/bootstrap/github.php
b/app/bootstrap/github.php
index e0defa7bc5482da1f53c647431470e25e1e43eca..e03cba099fd16717fe1c4b09911e2c5be263e1ae 100644
(file)
--- a/
app/bootstrap/github.php
+++ b/
app/bootstrap/github.php
@@
-16,19
+16,18
@@
$injector->share(Github\API::class)
$config->$basic->auth->toArray(),
0);
}
$config->$basic->auth->toArray(),
0);
}
+ $logger = new Github\Logger($config);
+
// FIXME: configure through app.ini
try {
$cache = new Github\Storage\Redis("gh-cache");
} catch (\Exception $ex) {
// FIXME: configure through app.ini
try {
$cache = new Github\Storage\Redis("gh-cache");
} catch (\Exception $ex) {
- try {
- $cache = new Github\Storage\Memcache("gh-cache");
- } catch (\Exception $ex) {
- $cache = null;
- }
+ /* Memcached won't throw an exception */
+ $cache = new Github\Storage\Memcache("gh-cache");
}
return new Github\API(
$config->github
}
return new Github\API(
$config->github
- ,
new Github\Logger($config)
+ ,
$logger
,new Github\Storage\Session("gh-tokens")
,$cache
);
,new Github\Storage\Session("gh-tokens")
,$cache
);