feature #32255 [HttpFoundation] Drop support for ApacheRequest (lyrixx)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpFoundation] Drop support for ApacheRequest
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
`ApacheUrlMatcher` has been [deprecated in 2.7](https://github.com/symfony/symfony/pull/12728) and removed in 3.0
I think we forgot to remove this class too.
This class in never used in symfony, and there are no more reference in
the documentation.
Commits
-------
f82e28c533
[HttpFoundation] Deprecated ApacheRequest
This commit is contained in:
commit
70318b4647
@ -60,6 +60,11 @@ HttpClient
|
||||
|
||||
* Added method `cancel()` to `ResponseInterface`
|
||||
|
||||
HttpFoundation
|
||||
--------------
|
||||
|
||||
* `ApacheRequest` is deprecated, use `Request` class instead.
|
||||
|
||||
HttpKernel
|
||||
----------
|
||||
|
||||
|
@ -114,7 +114,6 @@ DoctrineBridge
|
||||
* Passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field will throw an exception, pass `null` instead
|
||||
* Not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field will not apply any optimization
|
||||
|
||||
|
||||
DomCrawler
|
||||
----------
|
||||
|
||||
@ -268,6 +267,7 @@ HttpFoundation
|
||||
use `Symfony\Component\Mime\FileBinaryMimeTypeGuesser` instead.
|
||||
* The `FileinfoMimeTypeGuesser` class has been removed,
|
||||
use `Symfony\Component\Mime\FileinfoMimeTypeGuesser` instead.
|
||||
* `ApacheRequest` has been removed, use the `Request` class instead.
|
||||
|
||||
HttpKernel
|
||||
----------
|
||||
@ -518,7 +518,6 @@ Workflow
|
||||
property: state
|
||||
```
|
||||
|
||||
|
||||
* Support for using a workflow with a single state marking is dropped. Use a state machine instead.
|
||||
|
||||
Before:
|
||||
|
@ -11,9 +11,13 @@
|
||||
|
||||
namespace Symfony\Component\HttpFoundation;
|
||||
|
||||
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', ApacheRequest::class, Request::class), E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Request represents an HTTP request from an Apache server.
|
||||
*
|
||||
* @deprecated since Symfony 4.4. Use the Request class instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class ApacheRequest extends Request
|
||||
|
@ -5,6 +5,7 @@ CHANGELOG
|
||||
-----
|
||||
|
||||
* passing arguments to `Request::isMethodSafe()` is deprecated.
|
||||
* `ApacheRequest` is deprecated, use the `Request` class instead.
|
||||
|
||||
4.3.0
|
||||
-----
|
||||
|
@ -14,6 +14,7 @@ namespace Symfony\Component\HttpFoundation\Tests;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\ApacheRequest;
|
||||
|
||||
/** @group legacy */
|
||||
class ApacheRequestTest extends TestCase
|
||||
{
|
||||
/**
|
||||
|
Reference in New Issue
Block a user