Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
nativesessionstorage.php
1<?php
3
5
7{
9 private $session;
10
11 public function __construct(SessionInterface $session)
12 {
13 $this->session = $session;
14 }
15
16 public function read(string $key, int $ttl)
17 {
18 return $this->session->get($key);
19 }
20
21 public function write(string $key, $value, int $ttl)
22 {
23 $this->session->set($key, $value);
24 }
25}