This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2012-10-24 17:03:38 +01:00
|
|
|
UPGRADE FROM 2.1 to 2.2
|
|
|
|
=======================
|
|
|
|
|
2012-11-06 19:52:34 +00:00
|
|
|
### HttpFoundation
|
|
|
|
|
|
|
|
* The MongoDbSessionHandler default field names and timestamp type have changed.
|
|
|
|
|
|
|
|
The `sess_` prefix was removed from default field names. The session ID is
|
|
|
|
now stored in the `_id` field by default. The session date is now stored as a
|
|
|
|
`MongoDate` instead of `MongoTimestamp`, which also makes it possible to use
|
|
|
|
TTL collections in MongoDB 2.2+ instead of relying on the `gc()` method.
|
|
|
|
|
2012-11-09 20:03:11 +00:00
|
|
|
* The Stopwatch functionality was moved from HttpKernel\Debug to its own component
|
|
|
|
|
2012-10-24 17:03:38 +01:00
|
|
|
#### Deprecations
|
|
|
|
|
|
|
|
* The `Request::splitHttpAcceptHeader()` is deprecated and will be removed in 2.3.
|
|
|
|
|
|
|
|
You should now use the `AcceptHeader` class which give you fluent methods to
|
|
|
|
parse request accept-* headers. Some examples:
|
|
|
|
|
|
|
|
```
|
|
|
|
$accept = AcceptHeader::fromString($request->headers->get('Accept'));
|
|
|
|
if ($accept->has('text/html') {
|
|
|
|
$item = $accept->get('html');
|
|
|
|
$charset = $item->getAttribute('charset', 'utf-8');
|
|
|
|
$quality = $item->getQuality();
|
|
|
|
}
|
|
|
|
|
|
|
|
// accepts items are sorted by descending quality
|
|
|
|
$accepts = AcceptHeader::fromString($request->headers->get('Accept'))->all();
|
|
|
|
|
|
|
|
```
|
2012-11-13 18:41:37 +00:00
|
|
|
|
|
|
|
### Form
|
|
|
|
|
|
|
|
* The PasswordType is now not trimmed by default.
|