comparison vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.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 * NativeFileSessionHandler.
16 *
17 * Native session handler using PHP's built in file storage. 15 * Native session handler using PHP's built in file storage.
18 * 16 *
19 * @author Drak <drak@zikula.org> 17 * @author Drak <drak@zikula.org>
20 */ 18 */
21 class NativeFileSessionHandler extends NativeSessionHandler 19 class NativeFileSessionHandler extends NativeSessionHandler
22 { 20 {
23 /** 21 /**
24 * Constructor.
25 *
26 * @param string $savePath Path of directory to save session files 22 * @param string $savePath Path of directory to save session files
27 * Default null will leave setting as defined by PHP. 23 * Default null will leave setting as defined by PHP.
28 * '/path', 'N;/path', or 'N;octal-mode;/path 24 * '/path', 'N;/path', or 'N;octal-mode;/path
29 * 25 *
30 * @see http://php.net/session.configuration.php#ini.session.save-path for further details. 26 * @see http://php.net/session.configuration.php#ini.session.save-path for further details.
31 * 27 *
32 * @throws \InvalidArgumentException On invalid $savePath 28 * @throws \InvalidArgumentException On invalid $savePath
29 * @throws \RuntimeException When failing to create the save directory
33 */ 30 */
34 public function __construct($savePath = null) 31 public function __construct($savePath = null)
35 { 32 {
36 if (null === $savePath) { 33 if (null === $savePath) {
37 $savePath = ini_get('session.save_path'); 34 $savePath = ini_get('session.save_path');