29 lines
652 B
PHP
29 lines
652 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
// 注册应用服务
|
|
$this->app->singleton(\App\Services\JiraService::class);
|
|
$this->app->singleton(\App\Services\ConfigService::class);
|
|
$this->app->singleton(\App\Services\DingTalkService::class);
|
|
$this->app->singleton(\App\Services\GitMonitorService::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|