0);
}
// 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;
+ }
+ }
return new Github\API(
$config->github
,new Github\Logger($config)
,new Github\Storage\Session("gh-tokens")
- #,new Github\Storage\Memcache("gh-cache")
- ,new Github\Storage\Redis("gh-cache")
+ ,$cache
);
});
<?php if (APP_ENVIRONMENT != "production") : ?>
<h3>Stack Trace</h3>
-<pre><?= $this->e($exception->getTraceAsString()) ?></pre>
-<h3>Full Dump</h3>
-<pre><?= $this->e($exception) ?></pre>
+<pre style="display:block; overflow-x: scroll"><?= $this->e($exception) ?></pre>
<?php endif; ?>
,login text not null
,owner jsonb
,primary key (account,authority)
- ,unique key (login,authority)
+ ,unique (login,authority)
);