tuupola / slim-basic-auth

PSR-7 and PSR-15 HTTP Basic Authentication Middleware
MIT License
440 stars 66 forks source link

Interface ResponseFactoryInterface not found #88

Closed mschop closed 4 years ago

mschop commented 4 years ago

Hi,

I am getting the following error when trying to use this lib with slim version 3.12.3.

Got error 'PHP message: PHP Fatal error: Interface 'Psr\Http\Message\ResponseFactoryInterface' not found in project/vendor/tuupola/http-factory/src/ResponseFactory.php on line 45'

Best Regards mschop

mschop commented 4 years ago

Version of tuupola/slim-basic-auth is 3.2.1

tuupola commented 4 years ago

Do you have psr/http-factory installed? It should have been installed automatically if you use composer.

mschop commented 4 years ago

I am using composer. psr/http-factory is installed in version 1.0.1

mschop commented 4 years ago

Strange. It was installed according to composer.lock. But in fact the directory was empty. I removed the directory and reinstalled the dependency. Now it works.

Sorry for the superflous issue.

tuupola commented 4 years ago

Possible there was some intermittent network issue at the same time you first installed it. Glad problem was solved.