From e56578b33a4a2281b7c9b5772f787daa13004323 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 3 Feb 2026 16:42:06 +0300 Subject: [PATCH] Add convention about middleware names --- src/internals/010-code-style.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/internals/010-code-style.md b/src/internals/010-code-style.md index f86310fd..e0d9f9db 100644 --- a/src/internals/010-code-style.md +++ b/src/internals/010-code-style.md @@ -10,6 +10,7 @@ Code formatting used in Yii 3 packages is based on [PSR-1](https://www.php-fig.o - Use the shortest possible, but an explanatory name. - Never trim or abbreviate a name. - Postfix classes, interfaces, traits and variables, which is a [collection](https://en.wikipedia.org/wiki/Collection_(abstract_data_type)), with `Collection`. +- Postfix middleware classes with `Middleware`. ## Types