Debian Codegraph @

lib/3rdParty/composer/symfony/http-foundation/Session/Storage/Handler/NullSessionHandler.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
13
14 /**
15 * Can be used in unit testing or in a situations where persisted sessions are not desired.
16 *
17 * @author Drak <[email protected]>
18 */
19 class NullSessionHandler extends AbstractSessionHandler
20 {
21 public function close(): bool
22 {
23 return true;
24 }
25
26 public function validateId(#[\SensitiveParameter] string $sessionId): bool
27 {
28 return true;
29 }
30
31 protected function doRead(#[\SensitiveParameter] string $sessionId): string
32 {
33 return '';
34 }
35
36 public function updateTimestamp(#[\SensitiveParameter] string $sessionId, string $data): bool
37 {
38 return true;
39 }
40
41 protected function doWrite(#[\SensitiveParameter] string $sessionId, string $data): bool
42 {
43 return true;
44 }
45
46 protected function doDestroy(#[\SensitiveParameter] string $sessionId): bool
47 {
48 return true;
49 }
50
51 public function gc(int $maxlifetime): int|false
52 {
53 return 0;
54 }
55 }