fixes
This commit is contained in:
@@ -10,16 +10,16 @@ use Intervention\Image\ImageManager;
|
||||
use Lucent\Account\AuthService;
|
||||
use Lucent\Account\AuthServiceLunar;
|
||||
use Lucent\Account\UserRepo;
|
||||
use Lucent\Account\UserRepoLucent;
|
||||
use Lucent\Account\UserRepoLunar;
|
||||
use Lucent\Channel\ChannelService;
|
||||
use Lucent\Commands\CompileSchemas;
|
||||
use Lucent\Commands\GenerateCollectionSchema;
|
||||
use Lucent\Commands\GenerateFileSchema;
|
||||
use Lucent\Commands\LiveLink;
|
||||
use Lucent\Commands\RebuildThumbnails;
|
||||
use Lucent\Commands\RemoveOrphanEdges;
|
||||
use Lucent\Commands\SetupDatabase;
|
||||
use Lucent\Commands\UpgradeFiles122;
|
||||
use Lucent\Data\ChannelAuth;
|
||||
use Lucent\File\FileService;
|
||||
use Lucent\Query\DatabaseGraph\DatabaseGraph;
|
||||
use Lucent\Query\DatabaseGraph\PgsqlDatabaseGraph;
|
||||
@@ -43,8 +43,11 @@ class LucentServiceProvider extends ServiceProvider
|
||||
return new PgsqlDatabaseGraph();
|
||||
});
|
||||
|
||||
$this->app->bind(UserRepo::class, function () {
|
||||
return new UserRepoLunar();
|
||||
$this->app->bind(UserRepo::class, function ($app) {
|
||||
return match ($app->make(ChannelService::class)->channel->auth) {
|
||||
ChannelAuth::LUNAR => new UserRepoLunar(),
|
||||
ChannelAuth::LUCENT => new UserRepoLucent(),
|
||||
};
|
||||
});
|
||||
|
||||
$this->app->bind(AuthService::class, function ($app) {
|
||||
|
||||
Reference in New Issue
Block a user