-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[RFC] Permit HttpFoundation\Request class override #7453
Copy link
Copy link
Closed
Labels
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 68CF /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?
Reactions are currently unavailable