adrema/app/Setting/SettingServiceProvider.php

32 lines
634 B
PHP
Raw Normal View History

2022-10-20 02:15:28 +02:00
<?php
namespace App\Setting;
2022-11-07 16:18:11 +01:00
use App\Letter\LetterSettings;
2022-10-20 02:15:28 +02:00
use App\Mailman\MailmanSettings;
use Illuminate\Support\ServiceProvider;
class SettingServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
app()->singleton(SettingFactory::class, fn () => new SettingFactory());
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
2022-11-07 16:18:11 +01:00
app(SettingFactory::class)->register(LetterSettings::class);
2022-10-20 02:15:28 +02:00
app(SettingFactory::class)->register(MailmanSettings::class);
}
}