Skip to content

Commit 5578ab0

Browse files
committed
Mention that public services must add an alias to their classes
1 parent 022e2cc commit 5578ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contributing/code/standards.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ Service Naming Conventions
221221
* Use lowercase letters for service and parameter names (except when referring
222222
to environment variables with the ``%env(VARIABLE_NAME)%`` syntax);
223223

224-
* A group name uses the underscore notation.
224+
* A group name uses the underscore notation;
225+
226+
* Add class aliases for public services (e.g. alias ``Symfony\Component\Something\ClassName``
227+
to ``something.service_name``).
225228

226229
Documentation
227230
-------------

0 commit comments

Comments
 (0)