Response format compatible with PSR-7 on phalcon 3.4 (need for RoadRunner) #15755
Replies: 3 comments 1 reply
-
The response format is not compatible with PSR7 at the moment. This has been requested in the past and is indeed in our todo list. The whole HTTP layer will be refactored to use middleware as well as responses according to PSR. You could use now the The refactoring will happen after we have a stable v5 (this year) and while we work on v6 which will be PHP based. |
Beta Was this translation helpful? Give feedback.
-
This is the original issue and it has quite a high vote count in our NFRs (things the community needs) |
Beta Was this translation helpful? Give feedback.
-
Check this out also https://github.com/kcloze/phalcon-roadrunner |
Beta Was this translation helpful? Give feedback.
-
For run application written on phalcon 3.4.2 need response format compatible with PSR-7. RoadRunner Implementation
So can I get all headers as an array from the phalcon application with a response?
e.g. looks loke doesn't work.
$phalconResponse = $application->handle(); $phalconResponse->getHeaders()->toArray();
Beta Was this translation helpful? Give feedback.
All reactions