diff --git a/src/App/src/Middleware/AuthenticationMiddleware.php b/src/App/src/Middleware/AuthenticationMiddleware.php index e76fc12..4f45223 100644 --- a/src/App/src/Middleware/AuthenticationMiddleware.php +++ b/src/App/src/Middleware/AuthenticationMiddleware.php @@ -11,17 +11,17 @@ use Mezzio\Authentication\UserInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; +use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; -class AuthenticationMiddleware extends \Mezzio\Authentication\AuthenticationMiddleware +class AuthenticationMiddleware implements MiddlewareInterface { #[Inject( AuthenticationInterface::class, )] public function __construct( - AuthenticationInterface $auth, + protected AuthenticationInterface $auth, ) { - parent::__construct($auth); } public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface