Skip to content

Commit 39c66ce

Browse files
author
Drak
committed
Sync with PR class name change.
1 parent 793e570 commit 39c66ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/http_foundation/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ HTTP Foundation
88
sessions
99
session_configuration
1010
session_testing
11-
session_php_legacy
11+
session_php_bridge
1212
trusting_proxies

components/http_foundation/session_php_legacy.rst renamed to components/http_foundation/session_php_bridge.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ superglobal. Additionally, it is mandatory for Symfony to start the session.
1414

1515
However when there really are circumstances where this is not possible, it is possible
1616
to use a special storage bridge
17-
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\PhpSessionStorage`
17+
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\PhpBridgeSessionStorage`
1818
which is designed to allow Symfony to work with a session started outside of
1919
the Symfony Session framework. You are warned that things can interrupt this
2020
use case unless you are careful: for example legacy application erases ``$_SESSION``.
@@ -23,15 +23,15 @@ Typical use of this might look as follows::
2323

2424
<?php
2525
use Symfony\Component\HttpFoundation\Session\Session;
26-
use Symfony\Component\HttpFoundation\Session\Storage\PhpSessionStorage;
26+
use Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage;
2727

2828
// legacy application configures session
2929
ini_set('session.save_handler', 'files');
3030
ini_set('session.save_path', '/tmp');
3131
session_start();
3232

3333
// Get Symfony to interface with this existing session
34-
$session = new Session(new PhpSessionStorage());
34+
$session = new Session(new PhpBridgeSessionStorage());
3535

3636
// symfony will now interface with the existing PHP session
3737
$session->start();

0 commit comments

Comments
 (0)