From 73ff5eaeab131385618af2981b7614651403c392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20V=C3=B6lkel?= Date: Tue, 20 Jan 2015 08:12:51 +0100 Subject: [PATCH 1/2] restore the how to NOT do it example in the "Service: No Class Parameter" section --- best_practices/business-logic.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/best_practices/business-logic.rst b/best_practices/business-logic.rst index 3799e7c0f83..1801b3953e0 100644 --- a/best_practices/business-logic.rst +++ b/best_practices/business-logic.rst @@ -140,9 +140,12 @@ the class namespace as a parameter: # app/config/services.yml # service definition with class namespace as parameter + parameters: + slugger.class: AppBundle\Utils\Slugger + services: app.slugger: - class: AppBundle\Utils\Slugger + class: "%slugger.class%" This practice is cumbersome and completely unnecessary for your own services: From 0a678d28a4aa3c914039317736c6338def6c3b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20V=C3=B6lkel?= Date: Tue, 20 Jan 2015 10:21:43 +0100 Subject: [PATCH 2/2] fixed indentation --- best_practices/business-logic.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/best_practices/business-logic.rst b/best_practices/business-logic.rst index 1801b3953e0..11a6a9309a0 100644 --- a/best_practices/business-logic.rst +++ b/best_practices/business-logic.rst @@ -141,7 +141,7 @@ the class namespace as a parameter: # service definition with class namespace as parameter parameters: - slugger.class: AppBundle\Utils\Slugger + slugger.class: AppBundle\Utils\Slugger services: app.slugger: