Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / lib / Drupal / Core / Session / SessionManagerInterface.php
1 <?php
2
3 namespace Drupal\Core\Session;
4
5 use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface;
6
7 /**
8  * Defines the session manager interface.
9  */
10 interface SessionManagerInterface extends SessionStorageInterface {
11
12   /**
13    * Ends a specific user's session(s).
14    *
15    * @param int $uid
16    *   User ID.
17    */
18   public function delete($uid);
19
20   /**
21    * Destroys the current session and removes session cookies.
22    */
23   public function destroy();
24
25   /**
26    * Sets the write safe session handler.
27    *
28    * @todo: This should be removed once all database queries are removed from
29    *   the session manager class.
30    *
31    * @var \Drupal\Core\Session\WriteSafeSessionHandlerInterface
32    */
33   public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler);
34
35 }