forked from projects/fipamo
33 lines
641 B
PHP
33 lines
641 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use App\Services\SettingsService;
|
||
|
use App\Services\AuthService;
|
||
|
|
||
|
class FipamoServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Register services.
|
||
|
*/
|
||
|
public function register(): void
|
||
|
{
|
||
|
$this->app->bind(SettingsService::class, function ($app) {
|
||
|
return new SettingsService();
|
||
|
});
|
||
|
|
||
|
$this->app->bind(AuthService::class, function ($app) {
|
||
|
return new AuthService(new SettingsService());
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Bootstrap services.
|
||
|
*/
|
||
|
public function boot(): void
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
}
|