Skip to content

Commit fb9bec2

Browse files
committed
-
1 parent 32f376d commit fb9bec2

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

session.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,11 @@
55
Sessions
66
========
77

8-
Installation
9-
------------
10-
118
The Symfony HttpFoundation component has a very powerful and flexible session
129
subsystem which is designed to provide session management that you can use to
1310
store information about the user between requests through a clear
1411
object-oriented interface using a variety of session storage drivers.
1512

16-
You need to install the HttpFoundation component to handle sessions:
17-
18-
.. code-block:: terminal
19-
20-
$ composer require symfony/http-foundation
21-
2213
Symfony sessions are designed to replace the usage of the ``$_SESSION`` super
2314
global and native PHP functions related to manipulating the session like
2415
``session_start()``, ``session_regenerate_id()``, ``session_id()``,
@@ -28,6 +19,15 @@ global and native PHP functions related to manipulating the session like
2819

2920
Sessions are only started if you read or write from it.
3021

22+
Installation
23+
------------
24+
25+
You need to install the HttpFoundation component to handle sessions:
26+
27+
.. code-block:: terminal
28+
29+
$ composer require symfony/http-foundation
30+
3131
.. _session-intro:
3232

3333
Basic Usage

testing.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -194,25 +194,6 @@ code to production:
194194
$twig->strictVariables(true);
195195
};
196196
197-
Another example for HTTP sessions:
198-
199-
.. configuration-block::
200-
201-
.. code-block:: yaml
202-
203-
when@test:
204-
framework:
205-
test: true
206-
session:
207-
storage_factory_id: session.storage.factory.mock_file
208-
209-
.. code-block:: php-standalone
210-
211-
use Symfony\Component\HttpFoundation\Session\Session;
212-
use Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage;
213-
214-
$session = new Session(new MockFileSessionStorage());
215-
216197
You can also use a different environment entirely, or override the default
217198
debug mode (``true``) by passing each as options to the ``bootKernel()``
218199
method::

0 commit comments

Comments
 (0)