HttpServer icon indicating copy to clipboard operation
HttpServer copied to clipboard

Added methods to set custom request and response objects

Open enzolutions opened this issue 10 years ago • 4 comments

The idea is enable to use Drupal 8 request and response, because the change a little bit from symfony request and responses.

enzolutions avatar Nov 26 '15 16:11 enzolutions

but... Why do you need to do that? Drupal 8 is HttpKernelInterface friendly ping @h4cc

yosymfony avatar Dec 14 '15 19:12 yosymfony

Not really, how request and response is created in a differente way in Drupal 8

enzolutions avatar Dec 14 '15 19:12 enzolutions

I cant see the cause for a change like this be needed. @enzolutions Please elborate or give examples.

Drupal 8 is using the stock symfony http-kernel and http-foundation way AFAIK: https://github.com/drupal/drupal/blob/8.0.x/index.php#L18

Only idea i have is to use a factory or middleware pattern, that will enable using callbacks to create Symfony Request/Response instances.

h4cc avatar Dec 14 '15 19:12 h4cc

@h4cc I would understand a middleware pattern as factory to create Request instances... but does it needed for a response instances?

yosymfony avatar Dec 14 '15 19:12 yosymfony