Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / vendor / symfony / http-foundation / Session / Storage / Handler / NullSessionHandler.php
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     /**
22      * {@inheritdoc}
23      */
24     public function close()
25     {
26         return true;
27     }
28
29     /**
30      * {@inheritdoc}
31      */
32     public function validateId($sessionId)
33     {
34         return true;
35     }
36
37     /**
38      * {@inheritdoc}
39      */
40     protected function doRead($sessionId)
41     {
42         return '';
43     }
44
45     /**
46      * {@inheritdoc}
47      */
48     public function updateTimestamp($sessionId, $data)
49     {
50         return true;
51     }
52
53     /**
54      * {@inheritdoc}
55      */
56     protected function doWrite($sessionId, $data)
57     {
58         return true;
59     }
60
61     /**
62      * {@inheritdoc}
63      */
64     protected function doDestroy($sessionId)
65     {
66         return true;
67     }
68
69     /**
70      * {@inheritdoc}
71      */
72     public function gc($maxlifetime)
73     {
74         return true;
75     }
76 }