/** * @param string $context * @param string $name * @param EngineInterface $templating * @param MenuProviderInterface $menuProvider * @param FactoryInterface $factory * @param TranslatorInterface $translator * @param string $translationDomain */ public function __construct($context, $name, EngineInterface $templating, MenuProviderInterface $menuProvider, FactoryInterface $factory, TranslatorInterface $translator, $translationDomain = 'SonataUserBundle') { parent::__construct($context, $name, $templating, $menuProvider, $factory); $this->translator = $translator; $this->translationDomain = $translationDomain; $this->menuData = array(); }
/** * @param string $context * @param string $name * @param EngineInterface $templating * @param MenuProviderInterface $menuProvider * @param FactoryInterface $factory * @param CmsManagerSelectorInterface $cmsSelector */ public function __construct($context, $name, EngineInterface $templating, MenuProviderInterface $menuProvider, FactoryInterface $factory, CmsManagerSelectorInterface $cmsSelector) { $this->cmsSelector = $cmsSelector; parent::__construct($context, $name, $templating, $menuProvider, $factory); }