/** * Retrieves list of all Branches. * * @return Branch[] */ public function getAllBranches() { $this->isGranted('VIEW', 'Entity:DiamanteDeskBundle:Branch'); return $this->branchRepository->getAll(); }
/** * @return array */ public function getFilters() { return $this->filterRepository->getAll(); }