diff --git a/contributing/code/standards.rst b/contributing/code/standards.rst index b73f9bf632a..8c1f02edf58 100644 --- a/contributing/code/standards.rst +++ b/contributing/code/standards.rst @@ -134,6 +134,16 @@ Naming Conventions * Don't forget to look at the more verbose :doc:`conventions` document for more subjective naming considerations. +Service Naming Conventions +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* A service name contains groups, seperated by dots; +* The DI alias of the bundle is the first group (e.g. ``fos_user``); +* Use lowercase letters for service and parameter names; +* A group name uses the underscore notation; +* Each service has a coresponding parameter containing the class name, + following the ``%service name%.class`` convention. + Documentation -------------