public function __construct(EngineInterface $templateEngine, $widgetGroups) { $this->templateEngine = $templateEngine; $this->widgetGroups = $widgetGroups; }