Skip to content

Commit 079b413

Browse files
committed
minor #8470 Mention that public services must add an alias to their classes (javiereguiluz)
This PR was squashed before being merged into the 3.3 branch (closes #8470). Discussion ---------- Mention that public services must add an alias to their classes This fixes #7968. Commits ------- caf045b Fixed syntax 5578ab0 Mention that public services must add an alias to their classes
2 parents 1593509 + caf045b commit 079b413

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contributing/code/standards.rst

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

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

227230
Documentation
228231
-------------

0 commit comments

Comments
 (0)