Skip to content

Commit 13a2c82

Browse files
author
Drak
committed
[FrameworkBundle] Refactor session file handler service name and update changelogs
1 parent b2cc580 commit 13a2c82

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CHANGELOG
2525
* [BC BREAK] following session options: 'lifetime', 'path', 'domain', 'secure',
2626
'httponly' are now prefixed with cookie_ when dumped to the container
2727
* Added `handler_id` configuration under `session` key to represent `session.handler`
28-
service, defaults to `session.handler.native_file`.
28+
service, defaults to `session.handler.file`.
2929
* Added `gc_maxlifetime`, `gc_probability`, and `gc_divisor` to session
3030
configuration. This means session garbage collection has a
3131
`gc_probability`/`gc_divisor` chance of being run. The `gc_maxlifetime` defines

src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parameter key="session.attribute_bag.class">Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag</parameter>
1111
<parameter key="session.storage.native.class">Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage</parameter>
1212
<parameter key="session.storage.mock_file.class">Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage</parameter>
13-
<parameter key="session.handler.native_file.class">Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler</parameter>
13+
<parameter key="session.handler.file.class">Symfony\Component\HttpFoundation\Session\Storage\Handler\FileSessionHandler</parameter>
1414
<parameter key="session_listener.class">Symfony\Bundle\FrameworkBundle\EventListener\SessionListener</parameter>
1515
</parameters>
1616

@@ -34,7 +34,7 @@
3434
<argument>%kernel.cache_dir%/sessions</argument>
3535
</service>
3636

37-
<service id="session.handler.native_file" class="%session.handler.native_file.class%" public="false">
37+
<service id="session.handler.file" class="%session.handler.file.class%" public="false">
3838
<argument>%session.save_path%</argument>
3939
</service>
4040

@@ -45,5 +45,6 @@
4545

4646
<!-- for BC -->
4747
<service id="session.storage.filesystem" alias="session.storage.mock_file" />
48+
<service id="session.handler.native_file" alias="session.handler.file" />
4849
</services>
4950
</container>

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ CHANGELOG
2121
* [BC BREAK] Moved all session related classes and interfaces into own namespace, as
2222
`Symfony\Component\HttpFoundation\Session` and renamed classes accordingly.
2323
Session handlers are located in the subnamespace `Symfony\Component\HttpFoundation\Session\Handler`.
24-
* SessionHandlers must implement `\SessionHandlerInterface` or extend from the
25-
`Symfony\Component\HttpFoundation\Storage\Handler\NativeSessionHandler` base class.
24+
* SessionHandlers must implement `\SessionHandlerInterface`.
2625
* Added internal storage driver proxy mechanism for forward compatibility with
2726
PHP 5.4 `\SessionHandler` class.
28-
* Added session handlers for PHP native MongoDb, Memcache, Memcached, Redis and SQLite session
29-
save handlers.
3027
* Added session handlers for custom Memcache, Memcached and Null session save handlers.
3128
* [BC BREAK] Removed `NativeSessionStorage` and replaced with `NativeFileSessionHandler`.
3229
* [BC BREAK] `SessionStorageInterface` methods removed: `write()`, `read()` and

0 commit comments

Comments
 (0)