Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ed2dcb8

Browse filesBrowse files
committed
Provides a SessionFactoryInterface
1 parent 702a3ee commit ed2dcb8
Copy full SHA for ed2dcb8

File tree

Expand file treeCollapse file tree

3 files changed

+25
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+25
-2
lines changed

‎src/Symfony/Component/HttpFoundation/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
5.3
55
---
66

7-
* Add the `SessionFactory`, `NativeSessionStorageFactory`, `PhpBridgeSessionStorageFactory` and `MockFileSessionStorageFactory` classes
7+
* Add the `SessionFactoryInterface` and `SessionStorageFactoryInterface`, and add the `SessionFactory`, `NativeSessionStorageFactory`, `PhpBridgeSessionStorageFactory` and `MockFileSessionStorageFactory` classes that implements these interfaces
88
* Calling `Request::getSession()` when there is no available session throws a `SessionNotFoundException`
99
* Add the `RequestStack::getSession` method
1010
* Deprecate the `NamespacedAttributeBag` class

‎src/Symfony/Component/HttpFoundation/Session/SessionFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/SessionFactory.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class_exists(Session::class);
2020
/**
2121
* @author Jérémy Derussé <jeremy@derusse.com>
2222
*/
23-
class SessionFactory
23+
class SessionFactory implements SessionFactoryInterface
2424
{
2525
private $requestStack;
2626
private $storageFactory;
+23Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
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;
13+
14+
/**
15+
* @author Jérémy Derussé <jeremy@derusse.com>
16+
*/
17+
interface SessionFactoryInterface
18+
{
19+
/**
20+
* Creates a new instance of SessionInterface.
21+
*/
22+
public function createSession(): SessionInterface;
23+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.