| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function register() |
||
| 26 | { |
||
| 27 | $this->app->alias('bugsnag.logger', \Illuminate\Contracts\Logging\Log::class); |
||
| 28 | $this->app->alias('bugsnag.logger', \Psr\Log\LoggerInterface::class); |
||
| 29 | |||
| 30 | $this->app->singleton(GistFinder::class, function () { |
||
| 31 | $githubClient = new \Github\Client( |
||
| 32 | new \Github\HttpClient\CachedHttpClient(['cache_dir' => storage_path('app/cache')]) |
||
| 33 | ); |
||
| 34 | |||
| 35 | $paginator = new \Github\ResultPager($githubClient); |
||
| 36 | |||
| 37 | $guzzleClient = new \GuzzleHttp\Client(); |
||
| 38 | |||
| 39 | return new GistFinder($githubClient, $paginator, $guzzleClient); |
||
| 40 | }); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |