From fe7ef3ec7e823375d3c7d89d3801927bc6101dcd Mon Sep 17 00:00:00 2001 From: Oleg Baturin Date: Thu, 24 Oct 2024 14:58:46 +0700 Subject: [PATCH] fix eradme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ce888a..06a21a9 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ Add `CsrfMiddleware` to the main middleware stack ```php $middlewareDispatcher = $injector->make(MiddlewareDispatcher::class); -$middlewareDispatcher->withMiddlewares([ +$middlewareDispatcher = $middlewareDispatcher->withMiddlewares([ ErrorCatcher::class, SessionMiddleware::class, CsrfMiddleware::class, // <-- add this