diff --git a/lib/RssBridge.php b/lib/RssBridge.php index f9d4ea14..230488bf 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -26,7 +26,7 @@ final class RssBridge new SecurityMiddleware(), new MaintenanceMiddleware(), new BasicAuthMiddleware(), - new TokenAuthentication(), + new TokenAuthenticationMiddleware(), ]; $action = function ($req) use ($handler) { return $handler($req); diff --git a/middlewares/TokenAuthentication.php b/middlewares/TokenAuthenticationMiddleware.php similarity index 93% rename from middlewares/TokenAuthentication.php rename to middlewares/TokenAuthenticationMiddleware.php index 47b545e4..f8234629 100644 --- a/middlewares/TokenAuthentication.php +++ b/middlewares/TokenAuthenticationMiddleware.php @@ -2,7 +2,7 @@ declare(strict_types=1); -class TokenAuthentication implements Middleware +class TokenAuthenticationMiddleware implements Middleware { public function __invoke(Request $request, $next): Response {