Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
12 namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy; | 12 namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy; |
13 | 13 |
14 /** | 14 /** |
15 * @author Drak <drak@zikula.org> | 15 * @author Drak <drak@zikula.org> |
16 */ | 16 */ |
17 class SessionHandlerProxy extends AbstractProxy implements \SessionHandlerInterface | 17 class SessionHandlerProxy extends AbstractProxy implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface |
18 { | 18 { |
19 protected $handler; | 19 protected $handler; |
20 | 20 |
21 public function __construct(\SessionHandlerInterface $handler) | 21 public function __construct(\SessionHandlerInterface $handler) |
22 { | 22 { |
80 */ | 80 */ |
81 public function gc($maxlifetime) | 81 public function gc($maxlifetime) |
82 { | 82 { |
83 return (bool) $this->handler->gc($maxlifetime); | 83 return (bool) $this->handler->gc($maxlifetime); |
84 } | 84 } |
85 | |
86 /** | |
87 * {@inheritdoc} | |
88 */ | |
89 public function validateId($sessionId) | |
90 { | |
91 return !$this->handler instanceof \SessionUpdateTimestampHandlerInterface || $this->handler->validateId($sessionId); | |
92 } | |
93 | |
94 /** | |
95 * {@inheritdoc} | |
96 */ | |
97 public function updateTimestamp($sessionId, $data) | |
98 { | |
99 return $this->handler instanceof \SessionUpdateTimestampHandlerInterface ? $this->handler->updateTimestamp($sessionId, $data) : $this->write($sessionId, $data); | |
100 } | |
85 } | 101 } |