Convert static Session class to normal session class
All static Session:: calls (except for checking valid session name) are converted to object type. This Object is passed on to Login, Admin Backend and any other class that needs basic session checking
This commit is contained in:
1 parent
5b581c2ed6
commit
db8e17ae7c
39 files changed
+166
-252
No files matched your search
@@ -66,6 +66,8 @@ class Basic
|
||||
// logging interface, Debug\Logging class
|
||||
/** @var \CoreLibs\Debug\Logging */
|
||||
public $log;
|
||||
/** @var\CoreLibs\Create\Session */
|
||||
public $session;
|
||||
|
||||
// email valid checks
|
||||
/** @var array<mixed> */
|
||||
@@ -148,7 +150,7 @@ class Basic
|
||||
$this->email_regex_check = \CoreLibs\Check\Email::getEmailRegexCheck();
|
||||
|
||||
// initial the session if there is no session running already
|
||||
\CoreLibs\Create\Session::startSession($session_name);
|
||||
$this->session = new \CoreLibs\Create\Session($session_name ?? '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user