Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
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 <drak@zikula.org>
18
 */
19
class NullSessionHandler extends AbstractSessionHandler
20
{
21
    public function close(): bool
22
    {
23
        return true;
24
    }
25
 
26
    public function validateId(string $sessionId): bool
27
    {
28
        return true;
29
    }
30
 
31
    protected function doRead(string $sessionId): string
32
    {
33
        return '';
34
    }
35
 
36
    public function updateTimestamp(string $sessionId, string $data): bool
37
    {
38
        return true;
39
    }
40
 
41
    protected function doWrite(string $sessionId, string $data): bool
42
    {
43
        return true;
44
    }
45
 
46
    protected function doDestroy(string $sessionId): bool
47
    {
48
        return true;
49
    }
50
 
51
    public function gc(int $maxlifetime): int|false
52
    {
53
        return 0;
54
    }
55
}