Skip to content

Commit 699a98f

Browse files
committed
updated AuthenticationMiddleware for final
Signed-off-by: bidi <[email protected]>
1 parent 0248fae commit 699a98f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/App/src/Middleware/AuthenticationMiddleware.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
use Mezzio\Authentication\UserInterface;
1010
use Psr\Http\Message\ResponseInterface;
1111
use Psr\Http\Message\ServerRequestInterface;
12+
use Psr\Http\Server\MiddlewareInterface;
1213
use Psr\Http\Server\RequestHandlerInterface;
1314

14-
class AuthenticationMiddleware extends \Mezzio\Authentication\AuthenticationMiddleware
15+
class AuthenticationMiddleware implements MiddlewareInterface
1516
{
17+
public function __construct(
18+
protected AuthenticationInterface $auth,
19+
) {
20+
}
1621
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
1722
{
1823
$user = $this->auth->authenticate($request);

0 commit comments

Comments
 (0)