@@ -12,16 +12,16 @@ As stated elsewhere, Symfony Sessions are designed to replace the use of
12
12
PHP's native ``session_*() `` functions and use of the ``$_SESSION ``
13
13
superglobal. Additionally, it is mandatory for Symfony to start the session.
14
14
15
- However when there really are circumstances where this is not possible, it is possible
16
- to use a special storage bridge
15
+ However when there really are circumstances where this is not possible, you
16
+ can use a special storage bridge
17
17
:class: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Storage\\ PhpBridgeSessionStorage `
18
18
which is designed to allow Symfony to work with a session started outside of
19
19
the Symfony Session framework. You are warned that things can interrupt this
20
- use case unless you are careful: for example legacy application erases ``$_SESSION ``.
20
+ use-case unless you are careful: for example the legacy application erases
21
+ ``$_SESSION ``.
21
22
22
- Typical use of this might look as follows ::
23
+ A typical use of this might look like this ::
23
24
24
- <?php
25
25
use Symfony\Component\HttpFoundation\Session\Session;
26
26
use Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage;
27
27
@@ -36,14 +36,14 @@ Typical use of this might look as follows::
36
36
// symfony will now interface with the existing PHP session
37
37
$session->start();
38
38
39
- This will allow you to start using the Symfony Session API and allow
40
- migration of your application to Symfony Sessions .
39
+ This will allow you to start using the Symfony Session API and allow migration
40
+ of your application to Symfony sessions .
41
41
42
42
.. note ::
43
43
44
- Symfony Sessions store data like attributes in special 'Bags' which use a
45
- key in the ``$_SESSION `` superglobal. This means that a Symfony Session
46
- cannot access arbitary keys in ``$_SESSION `` that may be set by the legacy
44
+ Symfony sessions store data like attributes in special 'Bags' which use a
45
+ key in the ``$_SESSION `` superglobal. This means that a Symfony session
46
+ cannot access arbitrary keys in ``$_SESSION `` that may be set by the legacy
47
47
application, although all the ``$_SESSION `` contents will be saved when
48
48
the session is saved.
49
49
0 commit comments