ro
a748b2c098
Plugged in a basic auth classs for verifying members and a setting class to retrieve site settings and return necessary info. Very bare bones to start just to get it working and prep for the additional features
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
|
|
{
|
|
//
|
|
}
|
|
}
|