Cphalcon: [NFR] Ability to handle the request via Psr ServerRequest

Created on 18 Sep 2019  路  7Comments  路  Source: phalcon/cphalcon

Now Phalcon handle and get data from request via URI and native Phalcon\Http\Request.

I want to use RoadRunner in my application, but RoadRunner provide request as Psr ServerRequest.
Therefore I cant 't use RoadRunner in my Phalcon 4 application.

Sure, I can to write my realization of Phalcon\Http\RequestInterface for get data from Psr ServerRequest, but it so many code and i want to see this realization from Phalcon Developers.

Thank.

4.1.0 new feature request

Most helpful comment

We do not do integrations by ourselves... that will be too much. You can also use underlying Http consumer to skip psr-7 step if needed.

All 7 comments

As I can see, they do integrations to frameworks by them self:

image

Also here, work in progress for Laravel - https://github.com/spiral/roadrunner/issues/96
And here about phalcon - https://github.com/spiral/roadrunner/issues/153

v4 does have the PSR related components in the Http\Message namespace. You can use them directly from there.

In future versions the goal is to rewrite the full HTTP layer so that it only uses PSR classes. That will probably not happen until 4.2 maybe later.

Thank you, @niden
I will be waiting for 4.2)

We do not do integrations by ourselves... that will be too much. You can also use underlying Http consumer to skip psr-7 step if needed.

I write a simple adapt, you canrefer to the implementation.
https://github.com/kcloze/phalcon-roadrunner

Closing this: Please vote for this feature here: https://github.com/phalcon/cphalcon/issues/14608

guys common direct link for voting
https://github.com/phalcon/cphalcon/issues/14608#issuecomment-563472103

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bestirani2 picture bestirani2  路  3Comments

ruudboon picture ruudboon  路  3Comments

Yakovlev-Melarn picture Yakovlev-Melarn  路  3Comments

masood09 picture masood09  路  4Comments

ismail0234 picture ismail0234  路  3Comments