2FAuth/app/Providers/TwoFAuthServiceProvider.php

57 lines
1.1 KiB
PHP
Raw Normal View History

2022-07-19 17:27:23 +02:00
<?php
namespace App\Providers;
use App\Services\LogoService;
use App\Services\SettingService;
2022-09-21 21:50:41 +02:00
use App\Services\ReleaseRadarService;
2022-07-19 17:27:23 +02:00
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;
class TwoFAuthServiceProvider extends ServiceProvider implements DeferrableProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->app->singleton(SettingService::class, function () {
return new SettingService();
});
$this->app->singleton(LogoService::class, function () {
2022-07-19 17:27:23 +02:00
return new LogoService();
});
2022-09-21 21:50:41 +02:00
$this->app->singleton(ReleaseRadarService::class, function () {
return new ReleaseRadarService();
});
2022-07-19 17:27:23 +02:00
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
LogoService::class,
2022-09-21 21:50:41 +02:00
LogoSeReleaseRadarServicervice::class,
];
2022-07-19 17:27:23 +02:00
}
}