/** * @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_answer_timeline") * @Method({"GET"}) * */ public function getAnswerTimeline() { return $this->service->getAnswerTimeline(); }