Skip to content

Commit 80046ce

Browse files
wouterjweaverryan
authored andcommitted
Documented service name conventions
1 parent 41f8ff4 commit 80046ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contributing/code/standards.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ Naming Conventions
134134
* Don't forget to look at the more verbose :doc:`conventions` document for
135135
more subjective naming considerations.
136136

137+
Service Naming Conventions
138+
~~~~~~~~~~~~~~~~~~~~~~~~~~
139+
140+
* A service name contains groups, seperated by dots;
141+
* The DI alias of the bundle is the first group (e.g. ``fos_user``);
142+
* Use lowercase letters for service and parameter names;
143+
* A group name uses the underscore notation;
144+
* Each service has a coresponding parameter containing the class name,
145+
following the ``%service name%.class`` convention.
146+
137147
Documentation
138148
-------------
139149

0 commit comments

Comments
 (0)