Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/Session/Storage/Handler/NullSessionHandler.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; | 12 namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; |
13 | 13 |
14 /** | 14 /** |
15 * NullSessionHandler. | |
16 * | |
17 * Can be used in unit testing or in a situations where persisted sessions are not desired. | 15 * Can be used in unit testing or in a situations where persisted sessions are not desired. |
18 * | 16 * |
19 * @author Drak <drak@zikula.org> | 17 * @author Drak <drak@zikula.org> |
20 */ | 18 */ |
21 class NullSessionHandler implements \SessionHandlerInterface | 19 class NullSessionHandler extends AbstractSessionHandler |
22 { | 20 { |
23 /** | |
24 * {@inheritdoc} | |
25 */ | |
26 public function open($savePath, $sessionName) | |
27 { | |
28 return true; | |
29 } | |
30 | |
31 /** | 21 /** |
32 * {@inheritdoc} | 22 * {@inheritdoc} |
33 */ | 23 */ |
34 public function close() | 24 public function close() |
35 { | 25 { |
37 } | 27 } |
38 | 28 |
39 /** | 29 /** |
40 * {@inheritdoc} | 30 * {@inheritdoc} |
41 */ | 31 */ |
42 public function read($sessionId) | 32 public function validateId($sessionId) |
33 { | |
34 return true; | |
35 } | |
36 | |
37 /** | |
38 * {@inheritdoc} | |
39 */ | |
40 protected function doRead($sessionId) | |
43 { | 41 { |
44 return ''; | 42 return ''; |
45 } | 43 } |
46 | 44 |
47 /** | 45 /** |
48 * {@inheritdoc} | 46 * {@inheritdoc} |
49 */ | 47 */ |
50 public function write($sessionId, $data) | 48 public function updateTimestamp($sessionId, $data) |
51 { | 49 { |
52 return true; | 50 return true; |
53 } | 51 } |
54 | 52 |
55 /** | 53 /** |
56 * {@inheritdoc} | 54 * {@inheritdoc} |
57 */ | 55 */ |
58 public function destroy($sessionId) | 56 protected function doWrite($sessionId, $data) |
57 { | |
58 return true; | |
59 } | |
60 | |
61 /** | |
62 * {@inheritdoc} | |
63 */ | |
64 protected function doDestroy($sessionId) | |
59 { | 65 { |
60 return true; | 66 return true; |
61 } | 67 } |
62 | 68 |
63 /** | 69 /** |