Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion contributing/code/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,16 @@ Naming Conventions

* Use namespaces for all classes;

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

* Suffix interfaces with ``Interface``;

* Suffix traits with ``Trait``;

* Suffix exceptions with ``Exception``;

* Use alphanumeric characters and underscores for file names;

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