/** * @Route("/get_user_notification") * @Method({"GET"}) * * @return array */ public function getUserNotifications() { $result['posts_timeline'] = $this->post_service->getNewPosts(); $result['answers_timeline'] = $this->question_service->getAnswerTimeline(); $result['new_answers'] = $this->question_service->getNewAnswers(); return $result; }
/** * @Route("/get_new_answers") * @Method({"GET"}) * */ public function getNewAnswers() { return $this->service->getNewAnswers(); }