thebadspace/app/Providers/AppServiceProvider.php
ro 99e22f5697 added member profile editing
added a basic ui so logged in members can change their info/password
when needed
2024-09-20 15:09:45 -06:00

58 lines
1.5 KiB
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Repositories\LocationRepository;
use App\Repositories\SourceRepository;
use App\Repositories\MemberRepository;
use App\Services\UpdateService;
use App\Services\MaintenanceService;
use App\Models\Location;
use App\Models\Source;
use App\Models\Member;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
$this->app->bind(LocationRepository::class, function ($app) {
return new LocationRepository(new Location());
});
$this->app->bind(SourceRepository::class, function ($app) {
return new SourceRepository(new Source());
});
$this->app->bind(MemberRepository::class, function ($app) {
return new MemberRepository(new Member());
});
$this->app->bind(UpdateService::class, function ($app) {
return new UpdateService(
new LocationRepository(new Location()),
new SourceRepository(new Source())
);
});
$this->app->bind(MaintenanceService::class, function ($app) {
return new MaintenanceService(new Location());
});
$this->app->bind(PaginationService::class, function ($app) {
return new PaginationService(new Location());
});
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}