Skip to content

Commit 97eb3a7

Browse files
committed
refactor: use $this->savePath
1 parent df034eb commit 97eb3a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/Session/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,13 @@ public function __construct(AppConfig $config, string $ipAddress)
7373

7474
// Store Session configurations
7575
if ($session instanceof SessionConfig) {
76-
$this->table = $session->savePath;
7776
$this->DBGroup = $session->DBGroup ?? config(Database::class)->defaultGroup;
7877
} else {
7978
// `Config/Session.php` is absence
80-
$this->table = $config->sessionSavePath;
8179
$this->DBGroup = $config->sessionDBGroup ?? config(Database::class)->defaultGroup;
8280
}
8381

82+
$this->table = $this->savePath;
8483
if (empty($this->table)) {
8584
throw SessionException::forMissingDatabaseTable();
8685
}

0 commit comments

Comments
 (0)