+class DefaultController extends AbstractController {
+ //Config array
+ protected $config;
+
+ //Translator instance
+ protected $translator;
+
+ public function __construct(ContainerInterface $container, Translator $translator) {
+ //Retrieve config
+ $this->config = $container->getParameter($this->getAlias());
+
+ //Set the translator
+ $this->translator = $translator;
+ }
+