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
210
210
* Use `snake_case `_ for configuration parameters and Twig template variables
211
211
(e.g. ``framework.csrf_protection ``, ``http_status_code ``);
212
212
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 ``);
215
219
216
220
* Prefix all abstract classes with ``Abstract `` except PHPUnit ``*TestCase ``.
217
221
Please note some early Symfony classes do not follow this convention and
@@ -222,6 +226,9 @@ Naming Conventions
222
226
223
227
* Suffix traits with ``Trait ``;
224
228
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
+
225
232
* Suffix exceptions with ``Exception ``;
226
233
227
234
* Prefix PHP attributes with ``As `` where applicable (e.g. ``#[AsCommand] ``
You can’t perform that action at this time.
0 commit comments