Interface ResponseFactoryInterface not found
mschop opened this issue · 5 comments
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
Version of tuupola/slim-basic-auth is 3.2.1
Do you have psr/http-factory
installed? It should have been installed automatically if you use composer.
I am using composer. psr/http-factory is installed in version 1.0.1
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.
Possible there was some intermittent network issue at the same time you first installed it. Glad problem was solved.