+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;
+ }
+
+ //FIXME: we need to change the $this->container->getParameter($alias.'.xyz') to $this->container->getParameter($alias)['xyz']