Closed andig closed 7 years ago
What is a PR?
What is a PR?
A pull request? Didn't know what else to call it ;)
You can use the psr-http-message-bridge to convert Symfony requests: https://github.com/symfony/psr-http-message-bridge
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
$httpFoundationFactory = new HttpFoundationFactory();
// convert a Request
// $psrRequest is an instance of Psr\Http\Message\ServerRequestInterface
$symfonyRequest = $httpFoundationFactory->createRequest($psrRequest);
// convert a Response
// $psrResponse is an instance of Psr\Http\Message\ResponseInterface
$symfonyResponse = $httpFoundationFactory->createResponse($psrResponse);
Wow, didn't know that- great! Any chance for tagging a stable 3.0 to use it with?
Same question, My project has dependences for
"symfony/http-foundation": "^3.1"
When i try install via composer get error:
- jenssegers/proxy v2.2.1 requires symfony/http-foundation ~2.6
satisfiable by symfony/http-foundation[2.6.x-dev,.....................v2.8.9]
but these conflict with your requirements or minimum-stability.
Some solution for use composer and no-conflicts ?
Edit:
I solve by upgrating to ^3.0.0-beta2' [based on zend and not http foundation]
If you'd accept a PR I'd be happy to create one. As I'm not on PSR7 yet that would greatly simplify my testing dependencies.