24 lines
555 B
PHP
24 lines
555 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Auth\EloquentSessionRepository;
|
|
use App\Auth\SessionRepository;
|
|
use App\User\EloquentUserRepository;
|
|
use App\User\UserRepository;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class RepositoryServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->bind(
|
|
UserRepository::class,
|
|
EloquentUserRepository::class
|
|
);
|
|
$this->app->bind(
|
|
SessionRepository::class,
|
|
EloquentSessionRepository::class
|
|
);
|
|
}
|
|
}
|