Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function load(SessionIdInterface $id):StorableSessionInterface |
||
21 | { |
||
22 | $stringId = (string)$id; |
||
23 | if (!$this->has($stringId)) { |
||
24 | return StorableSession::fromId(DefaultSessionData::newEmptySession(), $this, $id); |
||
25 | } |
||
26 | $wrappedSession = DefaultSessionData::fromTokenData($this->sessions[$stringId]); |
||
27 | return new StorableSession($wrappedSession, $this); |
||
28 | } |
||
29 | |||
44 |