Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
CHANGELOG
2
=========
3
 
4
6.2
5
---
6
 
7
 * The HTTP cache store uses the `xxh128` algorithm
8
 * Deprecate calling `JsonResponse::setCallback()`, `Response::setExpires/setLastModified/setEtag()`, `MockArraySessionStorage/NativeSessionStorage::setMetadataBag()`, `NativeSessionStorage::setSaveHandler()` without arguments
9
 * Add request matchers under the `Symfony\Component\HttpFoundation\RequestMatcher` namespace
10
 * Deprecate `RequestMatcher` in favor of `ChainRequestMatcher`
11
 * Deprecate `Symfony\Component\HttpFoundation\ExpressionRequestMatcher` in favor of `Symfony\Component\HttpFoundation\RequestMatcher\ExpressionRequestMatcher`
12
 
13
6.1
14
---
15
 
16
 * Add stale while revalidate and stale if error cache header
17
 * Allow dynamic session "ttl" when using a remote storage
18
 * Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead
19
 
20
6.0
21
---
22
 
23
 * Remove the `NamespacedAttributeBag` class
24
 * Removed `Response::create()`, `JsonResponse::create()`,
25
   `RedirectResponse::create()`, `StreamedResponse::create()` and
26
   `BinaryFileResponse::create()` methods (use `__construct()` instead)
27
 * Not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()` throws an `\InvalidArgumentException`; wrap your filter in a closure instead
28
 * Not passing a `Closure` together with `FILTER_CALLBACK` to `InputBag::filter()` throws an `\InvalidArgumentException`; wrap your filter in a closure instead
29
 * Removed the `Request::HEADER_X_FORWARDED_ALL` constant, use either `Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO` or `Request::HEADER_X_FORWARDED_AWS_ELB` or `Request::HEADER_X_FORWARDED_TRAEFIK`constants instead
30
 * Rename `RequestStack::getMasterRequest()` to `getMainRequest()`
31
 * Not passing `FILTER_REQUIRE_ARRAY` or `FILTER_FORCE_ARRAY` flags to `InputBag::filter()` when filtering an array will throw `BadRequestException`
32
 * Removed the `Request::HEADER_X_FORWARDED_ALL` constant
33
 * Retrieving non-scalar values using `InputBag::get()` will throw `BadRequestException` (use `InputBad::all()` instead to retrieve an array)
34
 * Passing non-scalar default value as the second argument `InputBag::get()` will throw `\InvalidArgumentException`
35
 * Passing non-scalar, non-array value as the second argument `InputBag::set()` will throw `\InvalidArgumentException`
36
 * Passing `null` as `$requestIp` to `IpUtils::__checkIp()`, `IpUtils::__checkIp4()` or `IpUtils::__checkIp6()` is not supported anymore.
37
 
38
5.4
39
---
40
 
41
 * Deprecate passing `null` as `$requestIp` to `IpUtils::__checkIp()`, `IpUtils::__checkIp4()` or `IpUtils::__checkIp6()`, pass an empty string instead.
42
 * Add the `litespeed_finish_request` method to work with Litespeed
43
 * Deprecate `upload_progress.*` and `url_rewriter.tags` session options
44
 * Allow setting session options via DSN
45
 
46
5.3
47
---
48
 
49
 * Add the `SessionFactory`, `NativeSessionStorageFactory`, `PhpBridgeSessionStorageFactory` and `MockFileSessionStorageFactory` classes
50
 * Calling `Request::getSession()` when there is no available session throws a `SessionNotFoundException`
51
 * Add the `RequestStack::getSession` method
52
 * Deprecate the `NamespacedAttributeBag` class
53
 * Add `ResponseFormatSame` PHPUnit constraint
54
 * Deprecate the `RequestStack::getMasterRequest()` method and add `getMainRequest()` as replacement
55
 
56
5.2.0
57
-----
58
 
59
 * added support for `X-Forwarded-Prefix` header
60
 * added `HeaderUtils::parseQuery()`: it does the same as `parse_str()` but preserves dots in variable names
61
 * added `File::getContent()`
62
 * added ability to use comma separated ip addresses for `RequestMatcher::matchIps()`
63
 * added `Request::toArray()` to parse a JSON request body to an array
64
 * added `RateLimiter\RequestRateLimiterInterface` and `RateLimiter\AbstractRequestRateLimiter`
65
 * deprecated not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()`; wrap your filter in a closure instead.
66
 * Deprecated the `Request::HEADER_X_FORWARDED_ALL` constant, use either `HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO` or `HEADER_X_FORWARDED_AWS_ELB` or `HEADER_X_FORWARDED_TRAEFIK` constants instead.
67
 * Deprecated `BinaryFileResponse::create()`, use `__construct()` instead
68
 
69
5.1.0
70
-----
71
 
72
 * added `Cookie::withValue`, `Cookie::withDomain`, `Cookie::withExpires`,
73
   `Cookie::withPath`, `Cookie::withSecure`, `Cookie::withHttpOnly`,
74
   `Cookie::withRaw`, `Cookie::withSameSite`
75
 * Deprecate `Response::create()`, `JsonResponse::create()`,
76
   `RedirectResponse::create()`, and `StreamedResponse::create()` methods (use
77
   `__construct()` instead)
78
 * added `Request::preferSafeContent()` and `Response::setContentSafe()` to handle "safe" HTTP preference
79
   according to [RFC 8674](https://tools.ietf.org/html/rfc8674)
80
 * made the Mime component an optional dependency
81
 * added `MarshallingSessionHandler`, `IdentityMarshaller`
82
 * made `Session` accept a callback to report when the session is being used
83
 * Add support for all core cache control directives
84
 * Added `Symfony\Component\HttpFoundation\InputBag`
85
 * Deprecated retrieving non-string values using `InputBag::get()`, use `InputBag::all()` if you need access to the collection of values
86
 
87
5.0.0
88
-----
89
 
90
 * made `Cookie` auto-secure and lax by default
91
 * removed classes in the `MimeType` namespace, use the Symfony Mime component instead
92
 * removed method `UploadedFile::getClientSize()` and the related constructor argument
93
 * made `Request::getSession()` throw if the session has not been set before
94
 * removed `Response::HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL`
95
 * passing a null url when instantiating a `RedirectResponse` is not allowed
96
 
97
4.4.0
98
-----
99
 
100
 * passing arguments to `Request::isMethodSafe()` is deprecated.
101
 * `ApacheRequest` is deprecated, use the `Request` class instead.
102
 * passing a third argument to `HeaderBag::get()` is deprecated, use method `all()` instead
103
 * [BC BREAK] `PdoSessionHandler` with MySQL changed the type of the lifetime column,
104
   make sure to run `ALTER TABLE sessions MODIFY sess_lifetime INTEGER UNSIGNED NOT NULL` to
105
   update your database.
106
 * `PdoSessionHandler` now precalculates the expiry timestamp in the lifetime column,
107
    make sure to run `CREATE INDEX expiry ON sessions (sess_lifetime)` to update your database
108
    to speed up garbage collection of expired sessions.
109
 * added `SessionHandlerFactory` to create session handlers with a DSN
110
 * added `IpUtils::anonymize()` to help with GDPR compliance.
111
 
112
4.3.0
113
-----
114
 
115
 * added PHPUnit constraints: `RequestAttributeValueSame`, `ResponseCookieValueSame`, `ResponseHasCookie`,
116
   `ResponseHasHeader`, `ResponseHeaderSame`, `ResponseIsRedirected`, `ResponseIsSuccessful`, and `ResponseStatusCodeSame`
117
 * deprecated `MimeTypeGuesserInterface` and `ExtensionGuesserInterface` in favor of `Symfony\Component\Mime\MimeTypesInterface`.
118
 * deprecated `MimeType` and `MimeTypeExtensionGuesser` in favor of `Symfony\Component\Mime\MimeTypes`.
119
 * deprecated `FileBinaryMimeTypeGuesser` in favor of `Symfony\Component\Mime\FileBinaryMimeTypeGuesser`.
120
 * deprecated `FileinfoMimeTypeGuesser` in favor of `Symfony\Component\Mime\FileinfoMimeTypeGuesser`.
121
 * added `UrlHelper` that allows to get an absolute URL and a relative path for a given path
122
 
123
4.2.0
124
-----
125
 
126
 * the default value of the "$secure" and "$samesite" arguments of Cookie's constructor
127
   will respectively change from "false" to "null" and from "null" to "lax" in Symfony
128
   5.0, you should define their values explicitly or use "Cookie::create()" instead.
129
 * added `matchPort()` in RequestMatcher
130
 
131
4.1.3
132
-----
133
 
134
 * [BC BREAK] Support for the IIS-only `X_ORIGINAL_URL` and `X_REWRITE_URL`
135
   HTTP headers has been dropped for security reasons.
136
 
137
4.1.0
138
-----
139
 
140
 * Query string normalization uses `parse_str()` instead of custom parsing logic.
141
 * Passing the file size to the constructor of the `UploadedFile` class is deprecated.
142
 * The `getClientSize()` method of the `UploadedFile` class is deprecated. Use `getSize()` instead.
143
 * added `RedisSessionHandler` to use Redis as a session storage
144
 * The `get()` method of the `AcceptHeader` class now takes into account the
145
   `*` and `*/*` default values (if they are present in the Accept HTTP header)
146
   when looking for items.
147
 * deprecated `Request::getSession()` when no session has been set. Use `Request::hasSession()` instead.
148
 * added `CannotWriteFileException`, `ExtensionFileException`, `FormSizeFileException`,
149
   `IniSizeFileException`, `NoFileException`, `NoTmpDirFileException`, `PartialFileException` to
150
   handle failed `UploadedFile`.
151
 * added `MigratingSessionHandler` for migrating between two session handlers without losing sessions
152
 * added `HeaderUtils`.
153
 
154
4.0.0
155
-----
156
 
157
 * the `Request::setTrustedHeaderName()` and `Request::getTrustedHeaderName()`
158
   methods have been removed
159
 * the `Request::HEADER_CLIENT_IP` constant has been removed, use
160
   `Request::HEADER_X_FORWARDED_FOR` instead
161
 * the `Request::HEADER_CLIENT_HOST` constant has been removed, use
162
   `Request::HEADER_X_FORWARDED_HOST` instead
163
 * the `Request::HEADER_CLIENT_PROTO` constant has been removed, use
164
   `Request::HEADER_X_FORWARDED_PROTO` instead
165
 * the `Request::HEADER_CLIENT_PORT` constant has been removed, use
166
   `Request::HEADER_X_FORWARDED_PORT` instead
167
 * checking for cacheable HTTP methods using the `Request::isMethodSafe()`
168
   method (by not passing `false` as its argument) is not supported anymore and
169
   throws a `\BadMethodCallException`
170
 * the `WriteCheckSessionHandler`, `NativeSessionHandler` and `NativeProxy` classes have been removed
171
 * setting session save handlers that do not implement `\SessionHandlerInterface` in
172
   `NativeSessionStorage::setSaveHandler()` is not supported anymore and throws a
173
   `\TypeError`
174
 
175
3.4.0
176
-----
177
 
178
 * implemented PHP 7.0's `SessionUpdateTimestampHandlerInterface` with a new
179
   `AbstractSessionHandler` base class and a new `StrictSessionHandler` wrapper
180
 * deprecated the `WriteCheckSessionHandler`, `NativeSessionHandler` and `NativeProxy` classes
181
 * deprecated setting session save handlers that do not implement `\SessionHandlerInterface` in `NativeSessionStorage::setSaveHandler()`
182
 * deprecated using `MongoDbSessionHandler` with the legacy mongo extension; use it with the mongodb/mongodb package and ext-mongodb instead
183
 * deprecated `MemcacheSessionHandler`; use `MemcachedSessionHandler` instead
184
 
185
3.3.0
186
-----
187
 
188
 * the `Request::setTrustedProxies()` method takes a new `$trustedHeaderSet` argument,
189
   see https://symfony.com/doc/current/deployment/proxies.html for more info,
190
 * deprecated the `Request::setTrustedHeaderName()` and `Request::getTrustedHeaderName()` methods,
191
 * added `File\Stream`, to be passed to `BinaryFileResponse` when the size of the served file is unknown,
192
   disabling `Range` and `Content-Length` handling, switching to chunked encoding instead
193
 * added the `Cookie::fromString()` method that allows to create a cookie from a
194
   raw header string
195
 
196
3.1.0
197
-----
198
 
199
 * Added support for creating `JsonResponse` with a string of JSON data
200
 
201
3.0.0
202
-----
203
 
204
 * The precedence of parameters returned from `Request::get()` changed from "GET, PATH, BODY" to "PATH, GET, BODY"
205
 
206
2.8.0
207
-----
208
 
209
 * Finding deep items in `ParameterBag::get()` is deprecated since version 2.8 and
210
   will be removed in 3.0.
211
 
212
2.6.0
213
-----
214
 
215
 * PdoSessionHandler changes
216
   - implemented different session locking strategies to prevent loss of data by concurrent access to the same session
217
   - [BC BREAK] save session data in a binary column without base64_encode
218
   - [BC BREAK] added lifetime column to the session table which allows to have different lifetimes for each session
219
   - implemented lazy connections that are only opened when a session is used by either passing a dsn string
220
     explicitly or falling back to session.save_path ini setting
221
   - added a createTable method that initializes a correctly defined table depending on the database vendor
222
 
223
2.5.0
224
-----
225
 
226
 * added `JsonResponse::setEncodingOptions()` & `JsonResponse::getEncodingOptions()` for easier manipulation
227
   of the options used while encoding data to JSON format.
228
 
229
2.4.0
230
-----
231
 
232
 * added RequestStack
233
 * added Request::getEncodings()
234
 * added accessors methods to session handlers
235
 
236
2.3.0
237
-----
238
 
239
 * added support for ranges of IPs in trusted proxies
240
 * `UploadedFile::isValid` now returns false if the file was not uploaded via HTTP (in a non-test mode)
241
 * Improved error-handling of `\Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler`
242
   to ensure the supplied PDO handler throws Exceptions on error (as the class expects). Added related test cases
243
   to verify that Exceptions are properly thrown when the PDO queries fail.
244
 
245
2.2.0
246
-----
247
 
248
 * fixed the Request::create() precedence (URI information always take precedence now)
249
 * added Request::getTrustedProxies()
250
 * deprecated Request::isProxyTrusted()
251
 * [BC BREAK] JsonResponse does not turn a top level empty array to an object anymore, use an ArrayObject to enforce objects
252
 * added a IpUtils class to check if an IP belongs to a CIDR
253
 * added Request::getRealMethod() to get the "real" HTTP method (getMethod() returns the "intended" HTTP method)
254
 * disabled _method request parameter support by default (call Request::enableHttpMethodParameterOverride() to
255
   enable it, and Request::getHttpMethodParameterOverride() to check if it is supported)
256
 * Request::splitHttpAcceptHeader() method is deprecated and will be removed in 2.3
257
 * Deprecated Flashbag::count() and \Countable interface, will be removed in 2.3
258
 
259
2.1.0
260
-----
261
 
262
 * added Request::getSchemeAndHttpHost() and Request::getUserInfo()
263
 * added a fluent interface to the Response class
264
 * added Request::isProxyTrusted()
265
 * added JsonResponse
266
 * added a getTargetUrl method to RedirectResponse
267
 * added support for streamed responses
268
 * made Response::prepare() method the place to enforce HTTP specification
269
 * [BC BREAK] moved management of the locale from the Session class to the Request class
270
 * added a generic access to the PHP built-in filter mechanism: ParameterBag::filter()
271
 * made FileBinaryMimeTypeGuesser command configurable
272
 * added Request::getUser() and Request::getPassword()
273
 * added support for the PATCH method in Request
274
 * removed the ContentTypeMimeTypeGuesser class as it is deprecated and never used on PHP 5.3
275
 * added ResponseHeaderBag::makeDisposition() (implements RFC 6266)
276
 * made mimetype to extension conversion configurable
277
 * [BC BREAK] Moved all session related classes and interfaces into own namespace, as
278
   `Symfony\Component\HttpFoundation\Session` and renamed classes accordingly.
279
   Session handlers are located in the subnamespace `Symfony\Component\HttpFoundation\Session\Handler`.
280
 * SessionHandlers must implement `\SessionHandlerInterface` or extend from the
281
   `Symfony\Component\HttpFoundation\Storage\Handler\NativeSessionHandler` base class.
282
 * Added internal storage driver proxy mechanism for forward compatibility with
283
   PHP 5.4 `\SessionHandler` class.
284
 * Added session handlers for custom Memcache, Memcached and Null session save handlers.
285
 * [BC BREAK] Removed `NativeSessionStorage` and replaced with `NativeFileSessionHandler`.
286
 * [BC BREAK] `SessionStorageInterface` methods removed: `write()`, `read()` and
287
   `remove()`.  Added `getBag()`, `registerBag()`.  The `NativeSessionStorage` class
288
   is a mediator for the session storage internals including the session handlers
289
   which do the real work of participating in the internal PHP session workflow.
290
 * [BC BREAK] Introduced mock implementations of `SessionStorage` to enable unit
291
   and functional testing without starting real PHP sessions.  Removed
292
   `ArraySessionStorage`, and replaced with `MockArraySessionStorage` for unit
293
   tests; removed `FilesystemSessionStorage`, and replaced with`MockFileSessionStorage`
294
   for functional tests.  These do not interact with global session ini
295
   configuration values, session functions or `$_SESSION` superglobal. This means
296
   they can be configured directly allowing multiple instances to work without
297
   conflicting in the same PHP process.
298
 * [BC BREAK] Removed the `close()` method from the `Session` class, as this is
299
   now redundant.
300
 * Deprecated the following methods from the Session class: `setFlash()`, `setFlashes()`
301
   `getFlash()`, `hasFlash()`, and `removeFlash()`. Use `getFlashBag()` instead
302
   which returns a `FlashBagInterface`.
303
 * `Session->clear()` now only clears session attributes as before it cleared
304
   flash messages and attributes. `Session->getFlashBag()->all()` clears flashes now.
305
 * Session data is now managed by `SessionBagInterface` to better encapsulate
306
   session data.
307
 * Refactored session attribute and flash messages system to their own
308
  `SessionBagInterface` implementations.
309
 * Added `FlashBag`. Flashes expire when retrieved by `get()` or `all()`. This
310
   implementation is ESI compatible.
311
 * Added `AutoExpireFlashBag` (default) to replicate Symfony 2.0.x auto expire
312
   behavior of messages auto expiring after one page page load.  Messages must
313
   be retrieved by `get()` or `all()`.
314
 * Added `Symfony\Component\HttpFoundation\Attribute\AttributeBag` to replicate
315
   attributes storage behavior from 2.0.x (default).
316
 * Added `Symfony\Component\HttpFoundation\Attribute\NamespacedAttributeBag` for
317
   namespace session attributes.
318
 * Flash API can stores messages in an array so there may be multiple messages
319
   per flash type.  The old `Session` class API remains without BC break as it
320
   will allow single messages as before.
321
 * Added basic session meta-data to the session to record session create time,
322
   last updated time, and the lifetime of the session cookie that was provided
323
   to the client.
324
 * Request::getClientIp() method doesn't take a parameter anymore but bases
325
   itself on the trustProxy parameter.
326
 * Added isMethod() to Request object.
327
 * [BC BREAK] The methods `getPathInfo()`, `getBaseUrl()` and `getBasePath()` of
328
   a `Request` now all return a raw value (vs a urldecoded value before). Any call
329
   to one of these methods must be checked and wrapped in a `rawurldecode()` if
330
   needed.