From 0605949e1d05feb7e9f0791d0e8e03d932c70bf6 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 29 Jun 2013 20:30:07 +0200 Subject: [PATCH] Documented service name conventions --- contributing/code/standards.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -------------