/** * @Route("/get_categoryPeople/{catId}/{catPage}/{maxPagePeople}", requirements={"catId" = "\d+"}) * @Method({"GET"}) */ public function get_categoryPeople($catId, $catPage, $maxPagePeople) { $qposts = $this->postcategoryservice->getPostsByAuthorCategory($catId, $catPage, $maxPagePeople); $author = $this->authorservice->getAuthorsByIds($qposts['result']); return ['peoples' => $author, 'peoplesCount' => $qposts['count_all']]; }