From 6d76bf3c7b5c4a2ee3e525239cd57c6d3ab2965c Mon Sep 17 00:00:00 2001 From: Jesus Manuel Olivas Date: Wed, 23 Oct 2013 13:37:22 -0700 Subject: [PATCH] Remove comma on last injected service --- .../skeleton/module/module.DefaultController.php.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Drupal/AppConsole/Resources/skeleton/module/module.DefaultController.php.twig b/lib/Drupal/AppConsole/Resources/skeleton/module/module.DefaultController.php.twig index da0bceb2b..097fc359b 100644 --- a/lib/Drupal/AppConsole/Resources/skeleton/module/module.DefaultController.php.twig +++ b/lib/Drupal/AppConsole/Resources/skeleton/module/module.DefaultController.php.twig @@ -31,7 +31,7 @@ class {{ name }} {% if services is defined%}implements ContainerInjectionInterfa public static function create(ContainerInterface $container){ return new static( {% for service in services %} - $container->get('{{service.name}}'), + $container->get('{{service.name}}'){% if loop.last == false %},{% endif %} {% endfor %} ); } @@ -43,6 +43,6 @@ class {{ name }} {% if services is defined%}implements ContainerInjectionInterfa * @return [type] [description] */ public function helloAction($name) { - return "Hello" . $name . "!"; + return "Hello " . $name . "!"; } }