We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0248fae commit 699a98fCopy full SHA for 699a98f
src/App/src/Middleware/AuthenticationMiddleware.php
@@ -9,10 +9,15 @@
9
use Mezzio\Authentication\UserInterface;
10
use Psr\Http\Message\ResponseInterface;
11
use Psr\Http\Message\ServerRequestInterface;
12
+use Psr\Http\Server\MiddlewareInterface;
13
use Psr\Http\Server\RequestHandlerInterface;
14
-class AuthenticationMiddleware extends \Mezzio\Authentication\AuthenticationMiddleware
15
+class AuthenticationMiddleware implements MiddlewareInterface
16
{
17
+ public function __construct(
18
+ protected AuthenticationInterface $auth,
19
+ ) {
20
+ }
21
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
22
23
$user = $this->auth->authenticate($request);
0 commit comments