| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function register() |
||
| 26 | { |
||
| 27 | $this->app->singleton(GistFinder::class, function () { |
||
| 28 | $githubClient = new \Github\Client( |
||
| 29 | new \Github\HttpClient\CachedHttpClient(['cache_dir' => storage_path('app/cache')]) |
||
| 30 | ); |
||
| 31 | $paginator = new \Github\ResultPager($githubClient); |
||
| 32 | return new GistFinder($githubClient, $paginator); |
||
| 33 | }); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |