/** * Return a specific category. * The search if by the name of the category. * * @param $name * @return mixed */ public function getCategory($name) { return $this->repository->getCategoryByName($name); }