add help in BaseController for retrieving the translator (method

getTranslator)
This commit is contained in:
Manuel Raynaud
2013-09-06 16:14:35 +02:00
parent 2ef5e8bd0c
commit 3ac3224e1c

View File

@@ -81,6 +81,17 @@ class BaseController extends ContainerAware
return $this->container->get('event_dispatcher');
}
/**
*
* return the Translator
*
* @return mixed \Thelia\Core\Translation\Translator
*/
public function getTranslator()
{
return $this->getContainer()->get('thelia.translator');
}
/**
* Return the parser context,
*