public function getPagerAllWorkspaces($page = 1) { $workspaces = $this->workspaceRepo->findDisplayableWorkspaces(); return $this->pagerFactory->createPagerFromArray($workspaces, $page); }
/** * @param integer $page * * @return \PagerFanta\PagerFanta */ public function getDisplayableWorkspacesPager($page, $max = 20) { $workspaces = $this->workspaceRepo->findDisplayableWorkspaces(); return $this->pagerFactory->createPagerFromArray($workspaces, $page, $max); }