From e411707f4b0fc7b7b584644ba6b229b6c17cceda Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Mon, 24 Oct 2022 00:44:59 -0400 Subject: [PATCH] Replace session repository --- .../Repository/SessionRepositoryInterface.php | 18 ---------- app/Providers/RepositoryServiceProvider.php | 3 -- .../Eloquent/SessionRepository.php | 34 ------------------- 3 files changed, 55 deletions(-) delete mode 100644 app/Contracts/Repository/SessionRepositoryInterface.php delete mode 100644 app/Repositories/Eloquent/SessionRepository.php diff --git a/app/Contracts/Repository/SessionRepositoryInterface.php b/app/Contracts/Repository/SessionRepositoryInterface.php deleted file mode 100644 index 0a433af71..000000000 --- a/app/Contracts/Repository/SessionRepositoryInterface.php +++ /dev/null @@ -1,18 +0,0 @@ -app->bind(ScheduleRepositoryInterface::class, ScheduleRepository::class); $this->app->bind(ServerRepositoryInterface::class, ServerRepository::class); $this->app->bind(ServerVariableRepositoryInterface::class, ServerVariableRepository::class); - $this->app->bind(SessionRepositoryInterface::class, SessionRepository::class); $this->app->bind(SettingsRepositoryInterface::class, SettingsRepository::class); $this->app->bind(SubuserRepositoryInterface::class, SubuserRepository::class); $this->app->bind(TaskRepositoryInterface::class, TaskRepository::class); diff --git a/app/Repositories/Eloquent/SessionRepository.php b/app/Repositories/Eloquent/SessionRepository.php deleted file mode 100644 index 5aa355dc0..000000000 --- a/app/Repositories/Eloquent/SessionRepository.php +++ /dev/null @@ -1,34 +0,0 @@ -getBuilder()->where('user_id', $user)->get($this->getColumns()); - } - - /** - * Delete a session for a given user. - */ - public function deleteUserSession(int $user, string $session): ?int - { - return $this->getBuilder()->where('user_id', $user)->where('id', $session)->delete(); - } -}