File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,12 @@ Naming Conventions
210210* Use `snake_case `_ for configuration parameters and Twig template variables
211211 (e.g. ``framework.csrf_protection ``, ``http_status_code ``);
212212
213- * Use namespaces for all PHP classes and `UpperCamelCase `_ for their names (e.g.
214- ``ConsoleLogger ``);
213+ * Use `SCREAMING_SNAKE_CASE `_ for constants (e.g. ``InputArgument::IS_ARRAY ``);
214+
215+ * Use `UpperCamelCase `_ for enumeration cases (e.g. ``InputArgumentMode::IsArray ``);
216+
217+ * Use namespaces for all PHP classes, interfaces, traits and enums and
218+ `UpperCamelCase `_ for their names (e.g. ``ConsoleLogger ``);
215219
216220* Prefix all abstract classes with ``Abstract `` except PHPUnit ``*TestCase ``.
217221 Please note some early Symfony classes do not follow this convention and
@@ -222,6 +226,9 @@ Naming Conventions
222226
223227* Suffix traits with ``Trait ``;
224228
229+ * Don't use a dedicated suffix for classes or enumerations (e.g. like ``Class ``
230+ or ``Enum ``), except for the cases listed below.
231+
225232* Suffix exceptions with ``Exception ``;
226233
227234* Prefix PHP attributes with ``As `` where applicable (e.g. ``#[AsCommand] ``
You can’t perform that action at this time.
0 commit comments