When zend-expressive 3.0.0alpha3 is installed, the composer issues a message:
Package http-interop/http-server-middleware is abandoned, you should avoid using it. Use psr/http-server-middleware instead.
I change the interface for my middleware
from Interop\Http\Server\MiddlewareInterface
to Psr\Http\Server\MiddlewareInterface
and I see an error:
Lazy-loaded middleware “Zend\Expressive\Helper\ServerUrlMiddleware” is neither invokable nor implements Interop\Http\Server\MiddlewareInterface
in /vendor/zendframework/zend-expressive/src/Middleware/LazyLoadingMiddleware.php
// Unknown - invalid!
if (! is_callable($middleware)) {
throw new InvalidMiddlewareException(sprintf(
'Lazy-loaded middleware "%s" is neither invokable nor implements %s',
$this->middlewareName,
MiddlewareInterface::class
));
}
Am I doing the right thing?