Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Psr\Http\Message\ RequestInterface and ResponseInterface #1041

Open
matteovisotto opened this issue Jan 23, 2023 · 1 comment

Comments

@matteovisotto
Copy link

Hi,
I'm trying to integrate the library with a website written using Slim where requests and responses are of type Psr\Http\Message.
Searching I didn't found anything for supporting that, there is a way to create a Mapper between the two objects?

Thanks

@ezkimo
Copy link

ezkimo commented Feb 6, 2023

There is a laminas-api-tools/api-tools-oauth2 package, which overrides the auth controller and uses its own request and response objects. It intercepts the response objects from this packages and transforms it into a laminas http response. This could be a possible way how you could implement PSR-7 with slim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants