inital commit
[pharext/pharext.org] / app / bootstrap / github.php
1 <?php
2
3 namespace app;
4
5 require_once __DIR__."/config.php";
6
7 use merry\Config;
8
9 $injector->share(Github\API::class)
10 ->delegate(Github\API::class, function() use($injector) {
11 return new Github\API(
12 $injector->make(Config::class)->github
13 ,new Github\Storage\Session("gh-tokens")
14 #,new Github\Storage\Memcache("gh-cache")
15 );
16 });
17