2022-10-20 02:15:28 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Setting;
|
|
|
|
|
2023-04-18 22:08:45 +02:00
|
|
|
use App\Invoice\InvoiceSettings;
|
2023-06-01 15:02:35 +02:00
|
|
|
use App\Mailgateway\MailgatewaySettings;
|
2022-10-20 02:15:28 +02:00
|
|
|
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()
|
|
|
|
{
|
2023-04-18 22:08:45 +02:00
|
|
|
app(SettingFactory::class)->register(InvoiceSettings::class);
|
2023-06-01 15:02:35 +02:00
|
|
|
app(SettingFactory::class)->register(MailgatewaySettings::class);
|
2022-10-20 02:15:28 +02:00
|
|
|
}
|
|
|
|
}
|