minor #20994 Add missing upgrade path for Request::isMethodSafe() deprecation (chalasr)

This PR was merged into the 3.2 branch.

Discussion
----------

Add missing upgrade path for Request::isMethodSafe() deprecation

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Fixed tickets| #20990

Commits
-------

570a76c Add missing upgrade path for Request::isMethodSafe() deprecation
This commit is contained in:
Fabien Potencier 2016-12-20 05:13:53 +01:00
commit 2de9dd157c
2 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,11 @@ HttpFoundation
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
* Checking only for cacheable HTTP methods with `Request::isMethodSafe()` is deprecated
since version 3.2 and will throw an exception in 4.0. Disable checking only for
cacheable methods by calling the method with `false` as first argument or use
`Request::isMethodCacheable()` instead.
HttpKernel
----------

View File

@ -151,6 +151,9 @@ HttpFoundation
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
* The ability to check only for cacheable HTTP methods using `Request::isMethodSafe()` is
not supported anymore, use `Request::isMethodCacheable()` instead.
HttpKernel
----------