config = $config; $this->userSession = $userSession; $this->boardService = $boardService; $this->stackService = $stackService; } public function getForm() { $userId = $this->userSession->getUser()->getUID(); $rules = json_decode($this->config->getUserValue($userId, 'deckflow', 'rules', '[]'), true); $boards = $this->boardService->findAllBoards(); $stacks = []; foreach ($boards as $board) { $stacks[$board['id']] = $this->stackService->findAllStacksInBoard($board['id']); } return new TemplateResponse('deckflow', 'personal', [ 'rules' => $rules, 'boards' => $boards, 'stacks' => $stacks ]); } public function getSection() { return 'deckflow'; } public function getPriority() { return 50; } }