Skip to content

Commit 7f3f422

Browse files
committed
Merge pull request #2033 from drak/patch-6
Added Exception and tweaked language of Abstract
2 parents 46100f6 + 114b532 commit 7f3f422

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contributing/code/standards.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ Naming Conventions
108108

109109
* Use namespaces for all classes;
110110

111-
* Abstract classes are often prefixed with ``Abstract``;
111+
* Prefix abstract classes ``Abstract``. Please note some early Symfony2 classes
112+
do not follow this convention and have not been renamed for backward compatibility
113+
reasons. However all new abstract classes must follow this naming convention;
112114

113115
* Suffix interfaces with ``Interface``;
114116

115117
* Suffix traits with ``Trait``;
116118

119+
* Suffix exceptions with ``Exception``;
120+
117121
* Use alphanumeric characters and underscores for file names;
118122

119123
* Don't forget to look at the more verbose :doc:`conventions` document for

0 commit comments

Comments
 (0)