mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-25 16:39:13 +01:00
51 lines
946 B
PHP
51 lines
946 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\LogoService;
|
|
use App\Services\SettingService;
|
|
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 () {
|
|
return new LogoService();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
|
|
/**
|
|
* Get the services provided by the provider.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function provides()
|
|
{
|
|
return [
|
|
LogoService::class,
|
|
];
|
|
}
|
|
}
|