comparison vendor/symfony/http-foundation/Session/Storage/SessionStorageInterface.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
24 /** 24 /**
25 * Starts the session. 25 * Starts the session.
26 * 26 *
27 * @return bool True if started 27 * @return bool True if started
28 * 28 *
29 * @throws \RuntimeException If something goes wrong starting the session. 29 * @throws \RuntimeException if something goes wrong starting the session
30 */ 30 */
31 public function start(); 31 public function start();
32 32
33 /** 33 /**
34 * Checks if the session is started. 34 * Checks if the session is started.
102 * This method must invoke session_write_close() unless this interface is 102 * This method must invoke session_write_close() unless this interface is
103 * used for a storage object design for unit or functional testing where 103 * used for a storage object design for unit or functional testing where
104 * a real PHP session would interfere with testing, in which case 104 * a real PHP session would interfere with testing, in which case
105 * it should actually persist the session data if required. 105 * it should actually persist the session data if required.
106 * 106 *
107 * @throws \RuntimeException If the session is saved without being started, or if the session 107 * @throws \RuntimeException if the session is saved without being started, or if the session
108 * is already closed. 108 * is already closed
109 */ 109 */
110 public function save(); 110 public function save();
111 111
112 /** 112 /**
113 * Clear all session data in memory. 113 * Clear all session data in memory.
125 */ 125 */
126 public function getBag($name); 126 public function getBag($name);
127 127
128 /** 128 /**
129 * Registers a SessionBagInterface for use. 129 * Registers a SessionBagInterface for use.
130 *
131 * @param SessionBagInterface $bag
132 */ 130 */
133 public function registerBag(SessionBagInterface $bag); 131 public function registerBag(SessionBagInterface $bag);
134 132
135 /** 133 /**
136 * @return MetadataBag 134 * @return MetadataBag