33 lines
685 B
PHP
33 lines
685 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use GrahamCampbell\GitLab\Facades\GitLab;
|
|
use GrahamCampbell\GitLab\GitLabManager;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
app()->bind(GitLabManager::class, function () {
|
|
/** @var \Gitlab\Client */
|
|
$client = GitLab::connection(GitLab::getDefaultConnection());
|
|
return $client;
|
|
});
|
|
}
|
|
}
|