From 5578ab0262aa1003d36f5d05223eeceed46321f2 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 3 Oct 2017 16:12:10 +0200 Subject: [PATCH 1/2] Mention that public services must add an alias to their classes --- contributing/code/standards.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contributing/code/standards.rst b/contributing/code/standards.rst index 9cc1c9faed1..a3ec35ee9d5 100644 --- a/contributing/code/standards.rst +++ b/contributing/code/standards.rst @@ -221,7 +221,10 @@ Service Naming Conventions * Use lowercase letters for service and parameter names (except when referring to environment variables with the ``%env(VARIABLE_NAME)%`` syntax); -* A group name uses the underscore notation. +* A group name uses the underscore notation; + +* Add class aliases for public services (e.g. alias ``Symfony\Component\Something\ClassName`` +to ``something.service_name``). Documentation ------------- From caf045b727b63069f650faa9b2ab67dc00d54ec8 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 3 Oct 2017 16:13:23 +0200 Subject: [PATCH 2/2] Fixed syntax --- contributing/code/standards.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/code/standards.rst b/contributing/code/standards.rst index a3ec35ee9d5..549bbf2039b 100644 --- a/contributing/code/standards.rst +++ b/contributing/code/standards.rst @@ -224,7 +224,7 @@ Service Naming Conventions * A group name uses the underscore notation; * Add class aliases for public services (e.g. alias ``Symfony\Component\Something\ClassName`` -to ``something.service_name``). + to ``something.service_name``). Documentation -------------