public function selectAction() { /** @var DashboardEntity $dashboard */ $dashboard = $this->dashboardTaskService->find($this->params('id')); if (!$dashboard) { return $this->notFoundAction(); } $this->dashboardTaskService->selectDashboard($this->zourceAccount(), $dashboard); return $this->redirect()->toRoute('dashboard'); }