From 7dea0ec1fa53f97d15ccb5a890b4962f363770f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= <25438601+rafaucau@users.noreply.github.com> Date: Thu, 12 Sep 2024 23:02:40 +0200 Subject: [PATCH] fix: LSTagsMiddleware name --- extend.php | 6 +++--- .../{LSTagsMiddlewareAbstract.php => LSTagsMiddleware.php} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/Middleware/{LSTagsMiddlewareAbstract.php => LSTagsMiddleware.php} (95%) diff --git a/extend.php b/extend.php index d677d9a..cfe2edd 100644 --- a/extend.php +++ b/extend.php @@ -28,7 +28,7 @@ }; use ACPL\FlarumCache\Middleware\{ CacheControlMiddleware, - LSTagsMiddlewareAbstract, + LSTagsMiddleware, LoginMiddleware, LogoutMiddleware, PurgeCacheMiddleware, @@ -62,8 +62,8 @@ (new Extend\Middleware('forum'))->insertAfter(VaryCookieMiddleware::class, LogoutMiddleware::class), // Tag routes - (new Extend\Middleware('forum'))->add(LSTagsMiddlewareAbstract::class), - (new Extend\Middleware('api'))->add(LSTagsMiddlewareAbstract::class), + (new Extend\Middleware('forum'))->add(LSTagsMiddleware::class), + (new Extend\Middleware('api'))->add(LSTagsMiddleware::class), // Cache routes (new Extend\Middleware('forum'))->insertAfter(VaryCookieMiddleware::class, CacheControlMiddleware::class), diff --git a/src/Middleware/LSTagsMiddlewareAbstract.php b/src/Middleware/LSTagsMiddleware.php similarity index 95% rename from src/Middleware/LSTagsMiddlewareAbstract.php rename to src/Middleware/LSTagsMiddleware.php index a41025b..4cddd3e 100644 --- a/src/Middleware/LSTagsMiddlewareAbstract.php +++ b/src/Middleware/LSTagsMiddleware.php @@ -6,7 +6,7 @@ use Psr\Http\Message\{ResponseInterface, ServerRequestInterface}; use Psr\Http\Server\RequestHandlerInterface; -class LSTagsMiddlewareAbstract extends AbstractCacheTagsMiddleware +class LSTagsMiddleware extends AbstractCacheTagsMiddleware { protected function processTags( ServerRequestInterface $request,