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 e7f5636

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

File tree

2 files changed

+24
-1
lines changed
Filter options

2 files changed

+24
-1
lines changed

‎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.