I have been using the JWT middleware for several years, and it's helped me quickly develop some great APIs, so thanks for the hard work!
I've just started a new project which uses Slim 3, but also uses Mailgun's PHP SDK which requires a PSR-7 implementation (see here: https://github.com/mailgun/mailgun-php). However, when I install the nyholm\psr7 bundle, the error callback lambda incorrectly receives an object of type Nyholm\Psr7\Response instead of \Psr\Http\Message\ResponseInterface. For example:
Call to undefined method Nyholm\Psr7\Response::withJson()
Everything else inside of Slim works as expected, but the use of the Nyholm PSR-7 seems to break the middleware. Any suggestions on how we can get the two working?
I have been using the JWT middleware for several years, and it's helped me quickly develop some great APIs, so thanks for the hard work!
I've just started a new project which uses Slim 3, but also uses Mailgun's PHP SDK which requires a PSR-7 implementation (see here: https://github.com/mailgun/mailgun-php). However, when I install the nyholm\psr7 bundle, the
error
callback lambda incorrectly receives an object of typeNyholm\Psr7\Response
instead of\Psr\Http\Message\ResponseInterface
. For example:This throws an exception as follows:
Everything else inside of Slim works as expected, but the use of the Nyholm PSR-7 seems to break the middleware. Any suggestions on how we can get the two working?