Closed iconblocks closed 4 years ago
I have this exact same issue. Please help
Thanks @iconblocks @salvationarinze
Probably the #123 PR solves this problem. I'm reviewing it to fix this error ASAP.
Please, try use the PR version to test and let me know.
@sfelix-martins unfortunately #123 changes didn't work for me.
I have this issue as well. How do I test the #123 PR ?
I have this issue too, its happens when i use the middleware multiauth. I'm using Laravel 7.1.1 and PHP 7.4
+1
I met the same issue, and I reviewed the #123 PR. I realized it's doing the same thing as this PR https://github.com/laravel/lumen-framework/pull/1028/files, trying to replace the deprecated DiactorosFactory class by PsrHttpFactory, which is mentioned here https://github.com/symfony/psr-http-message-bridge/pull/75.
So I tried to do the same thing, and it actually works for me in Laravel 7, PHP 7.4.1, Passport 8.0. For those who tried but it didn't work, I highly recommend you guysto check if the psr-http-message-bridge is correctly installed in the project.
I have the same issue. PHP 7.4. Laravel 6.x.latest.
"smartins/passport-multiauth": "6.x-dev"
[2020-03-25 16:13:42] dev.ERROR: Class 'Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Symfony\\Bridge\\PsrHttpMessage\\Factory\\DiactorosFactory' not found at /home/vagrant/code/www.mininggame.dev/vendor/smartins/passport-multiauth/src/Facades/ServerRequest.php:17)
[stacktrace]
"require": {
"php": "^7.2",
"ext-json": "*",
"fideloper/proxy": "^4.0",
"funkjedi/composer-include-files": "^1.0",
"guzzlehttp/guzzle": "^6.4",
"hieu-le/active": "^4.0",
"laravel/framework": "^6.0",
"laravel/passport": "^8.0",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^6.1",
"league/fractal": "^0.19.2",
"nwidart/laravel-modules": "^6.2",
"overtrue/laravel-lang": "~3.0",
"predis/predis": "^1.1",
"smartins/passport-multiauth": "^6.0",
"spatie/laravel-permission": "^3.2"
},
passport v8.4.1 updated symfony/psr-http-message-bridge
from ^1.0
to ^v2.0
temporary solution: use passport "v8.4.0"
composer remove smartins/passport-multiauth
composer remove laravel/passport
composer require laravel/passport:8.4.0
composer require smartins/passport-multiauth
passport v8.4.1 updated
symfony/psr-http-message-bridge
from^1.0
to^v2.0
temporary solution: use passport "v8.4.0"
composer remove smartins/passport-multiauth composer remove laravel/passport composer require laravel/passport:8.4.0 composer require smartins/passport-multiauth
Downgrading is not a good idea
As #123 hasn't moved forward a few weeks, I decided to create my own PR #126.
For backward compatibility, I used the Laravel Framework implementation mentioned in the PR so additional version bump/lock is not needed.
Any help on fixing below error?
my composer.json as follows