Skip to content

Commit

Permalink
fix: LSTagsMiddleware name
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Sep 12, 2024
1 parent 6ed78e2 commit 7dea0ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
};
use ACPL\FlarumCache\Middleware\{
CacheControlMiddleware,
LSTagsMiddlewareAbstract,
LSTagsMiddleware,
LoginMiddleware,
LogoutMiddleware,
PurgeCacheMiddleware,
Expand Down Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7dea0ec

Please sign in to comment.