From 91586494077be2c0698948ed20ed93739a50df06 Mon Sep 17 00:00:00 2001 From: Nikita Konstantinov Date: Mon, 2 Sep 2013 07:44:03 +0400 Subject: [PATCH] Add type hinting for directly injected service $templating --- cookbook/controller/service.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/controller/service.rst b/cookbook/controller/service.rst index 96a2d755265..d22042f726a 100644 --- a/cookbook/controller/service.rst +++ b/cookbook/controller/service.rst @@ -180,13 +180,14 @@ service and use it directly:: // src/Acme/HelloBundle/Controller/HelloController.php namespace Acme\HelloBundle\Controller; + use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; use Symfony\Component\HttpFoundation\Response; class HelloController { private $templating; - public function __construct($templating) + public function __construct(EngineInterface $templating) { $this->templating = $templating; }