2024-03-01 20:34:36 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use App\Services\SettingsService;
|
|
|
|
use App\Services\AuthService;
|
2024-03-04 00:49:05 +01:00
|
|
|
use App\Services\ContentService;
|
|
|
|
use App\Services\PaginateService;
|
2024-03-01 20:34:36 +01:00
|
|
|
|
|
|
|
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());
|
|
|
|
});
|
2024-03-04 00:49:05 +01:00
|
|
|
|
|
|
|
$this->app->bind(ContentService::class, function ($app) {
|
|
|
|
return new ContentService();
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->app->bind(PaginateService::class, function ($app) {
|
|
|
|
return new PaginateService(new ContentService());
|
|
|
|
});
|
2024-03-01 20:34:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|