PluginProbe
WPIDE – File Manager & Code Editor / 3.5.10
WPIDE – File Manager & Code Editor v3.5.10
3.5.10 3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 All 56 releases
wpide / vendor / symfony / http-foundation / Session / Storage / MockFileSessionStorageFactory.php

MockFileSessionStorageFactory.php in WPIDE – File Manager & Code Editor 3.5.10, at vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorageFactory.php

43 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpFoundation\Session\Storage;
13
14 use Symfony\Component\HttpFoundation\Request;
15
16 // Help opcache.preload discover always-needed symbols
17 class_exists(MockFileSessionStorage::class);
18
19 /**
20 * @author Jérémy Derussé <[email protected]>
21 */
22 class MockFileSessionStorageFactory implements SessionStorageFactoryInterface
23 {
24 private $savePath;
25 private $name;
26 private $metaBag;
27
28 /**
29 * @see MockFileSessionStorage constructor.
30 */
31 public function __construct(?string $savePath = null, string $name = 'MOCKSESSID', ?MetadataBag $metaBag = null)
32 {
33 $this->savePath = $savePath;
34 $this->name = $name;
35 $this->metaBag = $metaBag;
36 }
37
38 public function createStorage(?Request $request): SessionStorageInterface
39 {
40 return new MockFileSessionStorage($this->savePath, $this->name, $this->metaBag);
41 }
42 }
43