Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (25 sloc) 1.252 kB
6b601bd @jfsimon [http-foudation] Better accept header parsing
jfsimon authored
1 UPGRADE FROM 2.1 to 2.2
2 =======================
3
ded3a83 @jmikola [HttpFoundation] Document MongoDbSessionHandler changes
jmikola authored
4 ### HttpFoundation
5
6 * The MongoDbSessionHandler default field names and timestamp type have changed.
7
8 The `sess_` prefix was removed from default field names. The session ID is
9 now stored in the `_id` field by default. The session date is now stored as a
10 `MongoDate` instead of `MongoTimestamp`, which also makes it possible to use
11 TTL collections in MongoDB 2.2+ instead of relying on the `gc()` method.
12
bdf0334 @dlsniper Fixed the lap method. Added upgrade notes. Some CS fixes
dlsniper authored
13 * The Stopwatch functionality was moved from HttpKernel\Debug to its own component
14
6b601bd @jfsimon [http-foudation] Better accept header parsing
jfsimon authored
15 #### Deprecations
16
17 * The `Request::splitHttpAcceptHeader()` is deprecated and will be removed in 2.3.
18
19 You should now use the `AcceptHeader` class which give you fluent methods to
20 parse request accept-* headers. Some examples:
21
22 ```
23 $accept = AcceptHeader::fromString($request->headers->get('Accept'));
24 if ($accept->has('text/html') {
25 $item = $accept->get('html');
26 $charset = $item->getAttribute('charset', 'utf-8');
27 $quality = $item->getQuality();
28 }
29
30 // accepts items are sorted by descending quality
31 $accepts = AcceptHeader::fromString($request->headers->get('Accept'))->all();
32
33 ```
97f6a1b @egeloen [Form] Update password type trimming to false
egeloen authored
34
35 ### Form
36
37 * The PasswordType is now not trimmed by default.
Something went wrong with that request. Please try again.