-               parent::__construct();
-
-               //Retrieve config
-               $this->config = $container->getParameter($this->getAlias());
-
-               //Retrieve locale
-               $this->locale = $container->getParameter('kernel.default_locale');
-
-               //Store doctrine
-        $this->doctrine = $doctrine;
-
-               //Store router
-        $this->router = $router;
-
-               //Get router context
-               $context = $this->router->getContext();
-
-               //Set host
-               $context->setHost('airlibre.eu');
-
-               //Set scheme
-               $context->setScheme('https');
-
-               //Set the translator
-               $this->translator = $translator;
+               parent::__construct($this->doctrine, $this->router, $this->slugger, $this->translator, $this->locale);