10 private static $instance;
12 public static function register(): void
23 $_SESSION = self::$instance =
new self();
26 protected function start(): void
30 $this->writeToLogError(
31 new \RuntimeException(
32 "Skipped cold session start because headers have already been sent. Be aware and fix usage of session, details in trace."
48 return isset($_SESSION[$offset]);
51 #[\ReturnTypeWillChange]
56 return $_SESSION[$offset];
63 $_SESSION[$offset] = $value;
70 unset($_SESSION[$offset]);
73 private function isKernelWentSessionStart(): bool
75 return defined(
'BX_STARTED');
78 private function isSessionAlreadyClosed(): bool
81 $this->isKernelWentSessionStart()
86 private function writeToLogError(\RuntimeException $exception): void
89 $exceptionHandler->writeToLog($exception);
offsetSet($offset, $value)
$GLOBALS['____1444769544']