Closed
Description
For now it is impossible to override Request
class as it is instantiated in few places.
To permit this override, we need to know on which class to call ::create()
method.
This has already been done for sub-request in #7381 and #7390 (the sub requests use the same class as the master request).
This should now be done in following places:
HttpKernel\Client::filterRequest()
method (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Client.php#L109)HttpKernel\HttpCache\Esi::handle()
method (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpCache/Esi.php#L197)HttpKernel\HttpCache\Store::purge()
method (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpCache/Store.php#L315)
What is the best way to let these classes know on which class they should call the ::create()
method?