From 51d43d99779c0883158767a794b74f732563f85a Mon Sep 17 00:00:00 2001 From: Dag Date: Fri, 30 Aug 2024 00:00:35 +0200 Subject: [PATCH] refactor --- lib/RssBridge.php | 2 +- ...okenAuthentication.php => TokenAuthenticationMiddleware.php} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename middlewares/{TokenAuthentication.php => TokenAuthenticationMiddleware.php} (93%) 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 {