Yaffs site version 1.1
[yaffs-website] / vendor / symfony / http-foundation / CHANGELOG.md
1 CHANGELOG
2 =========
3
4 2.8.0
5 -----
6
7  * Finding deep items in `ParameterBag::get()` is deprecated since version 2.8 and
8    will be removed in 3.0.
9
10 2.6.0
11 -----
12
13  * PdoSessionHandler changes
14    - implemented different session locking strategies to prevent loss of data by concurrent access to the same session
15    - [BC BREAK] save session data in a binary column without base64_encode
16    - [BC BREAK] added lifetime column to the session table which allows to have different lifetimes for each session
17    - implemented lazy connections that are only opened when a session is used by either passing a dsn string
18      explicitly or falling back to session.save_path ini setting
19    - added a createTable method that initializes a correctly defined table depending on the database vendor
20
21 2.5.0
22 -----
23
24  * added `JsonResponse::setEncodingOptions()` & `JsonResponse::getEncodingOptions()` for easier manipulation
25    of the options used while encoding data to JSON format.
26
27 2.4.0
28 -----
29
30  * added RequestStack
31  * added Request::getEncodings()
32  * added accessors methods to session handlers
33
34 2.3.0
35 -----
36
37  * added support for ranges of IPs in trusted proxies
38  * `UploadedFile::isValid` now returns false if the file was not uploaded via HTTP (in a non-test mode)
39  * Improved error-handling of `\Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler`
40    to ensure the supplied PDO handler throws Exceptions on error (as the class expects). Added related test cases
41    to verify that Exceptions are properly thrown when the PDO queries fail.
42
43 2.2.0
44 -----
45
46  * fixed the Request::create() precedence (URI information always take precedence now)
47  * added Request::getTrustedProxies()
48  * deprecated Request::isProxyTrusted()
49  * [BC BREAK] JsonResponse does not turn a top level empty array to an object anymore, use an ArrayObject to enforce objects
50  * added a IpUtils class to check if an IP belongs to a CIDR
51  * added Request::getRealMethod() to get the "real" HTTP method (getMethod() returns the "intended" HTTP method)
52  * disabled _method request parameter support by default (call Request::enableHttpMethodParameterOverride() to
53    enable it, and Request::getHttpMethodParameterOverride() to check if it is supported)
54  * Request::splitHttpAcceptHeader() method is deprecated and will be removed in 2.3
55  * Deprecated Flashbag::count() and \Countable interface, will be removed in 2.3
56
57 2.1.0
58 -----
59
60  * added Request::getSchemeAndHttpHost() and Request::getUserInfo()
61  * added a fluent interface to the Response class
62  * added Request::isProxyTrusted()
63  * added JsonResponse
64  * added a getTargetUrl method to RedirectResponse
65  * added support for streamed responses
66  * made Response::prepare() method the place to enforce HTTP specification
67  * [BC BREAK] moved management of the locale from the Session class to the Request class
68  * added a generic access to the PHP built-in filter mechanism: ParameterBag::filter()
69  * made FileBinaryMimeTypeGuesser command configurable
70  * added Request::getUser() and Request::getPassword()
71  * added support for the PATCH method in Request
72  * removed the ContentTypeMimeTypeGuesser class as it is deprecated and never used on PHP 5.3
73  * added ResponseHeaderBag::makeDisposition() (implements RFC 6266)
74  * made mimetype to extension conversion configurable
75  * [BC BREAK] Moved all session related classes and interfaces into own namespace, as
76    `Symfony\Component\HttpFoundation\Session` and renamed classes accordingly.
77    Session handlers are located in the subnamespace `Symfony\Component\HttpFoundation\Session\Handler`.
78  * SessionHandlers must implement `\SessionHandlerInterface` or extend from the
79    `Symfony\Component\HttpFoundation\Storage\Handler\NativeSessionHandler` base class.
80  * Added internal storage driver proxy mechanism for forward compatibility with
81    PHP 5.4 `\SessionHandler` class.
82  * Added session handlers for custom Memcache, Memcached and Null session save handlers.
83  * [BC BREAK] Removed `NativeSessionStorage` and replaced with `NativeFileSessionHandler`.
84  * [BC BREAK] `SessionStorageInterface` methods removed: `write()`, `read()` and
85    `remove()`.  Added `getBag()`, `registerBag()`.  The `NativeSessionStorage` class
86    is a mediator for the session storage internals including the session handlers
87    which do the real work of participating in the internal PHP session workflow.
88  * [BC BREAK] Introduced mock implementations of `SessionStorage` to enable unit
89    and functional testing without starting real PHP sessions.  Removed
90    `ArraySessionStorage`, and replaced with `MockArraySessionStorage` for unit
91    tests; removed `FilesystemSessionStorage`, and replaced with`MockFileSessionStorage`
92    for functional tests.  These do not interact with global session ini
93    configuration values, session functions or `$_SESSION` superglobal. This means
94    they can be configured directly allowing multiple instances to work without
95    conflicting in the same PHP process.
96  * [BC BREAK] Removed the `close()` method from the `Session` class, as this is
97    now redundant.
98  * Deprecated the following methods from the Session class: `setFlash()`, `setFlashes()`
99    `getFlash()`, `hasFlash()`, and `removeFlash()`. Use `getFlashBag()` instead
100    which returns a `FlashBagInterface`.
101  * `Session->clear()` now only clears session attributes as before it cleared
102    flash messages and attributes. `Session->getFlashBag()->all()` clears flashes now.
103  * Session data is now managed by `SessionBagInterface` to better encapsulate
104    session data.
105  * Refactored session attribute and flash messages system to their own
106   `SessionBagInterface` implementations.
107  * Added `FlashBag`. Flashes expire when retrieved by `get()` or `all()`. This
108    implementation is ESI compatible.
109  * Added `AutoExpireFlashBag` (default) to replicate Symfony 2.0.x auto expire
110    behaviour of messages auto expiring after one page page load.  Messages must
111    be retrieved by `get()` or `all()`.
112  * Added `Symfony\Component\HttpFoundation\Attribute\AttributeBag` to replicate
113    attributes storage behaviour from 2.0.x (default).
114  * Added `Symfony\Component\HttpFoundation\Attribute\NamespacedAttributeBag` for
115    namespace session attributes.
116  * Flash API can stores messages in an array so there may be multiple messages
117    per flash type.  The old `Session` class API remains without BC break as it
118    will allow single messages as before.
119  * Added basic session meta-data to the session to record session create time,
120    last updated time, and the lifetime of the session cookie that was provided
121    to the client.
122  * Request::getClientIp() method doesn't take a parameter anymore but bases
123    itself on the trustProxy parameter.
124  * Added isMethod() to Request object.
125  * [BC BREAK] The methods `getPathInfo()`, `getBaseUrl()` and `getBasePath()` of
126    a `Request` now all return a raw value (vs a urldecoded value before). Any call
127    to one of these methods must be checked and wrapped in a `rawurldecode()` if
128    needed.