/** * Fetch all or a subset of resources * * @param array $params * @return ApiProblem|mixed */ public function fetchAll($params = []) { return $this->mapper->fetchAll((array) $params); }
public function createService(ServiceLocatorInterface $serviceLocator) { $adapter = $serviceLocator->get('db.adapter.my-tennis-pal'); $albumMapper = new PlaceTypeMapper(); return $albumMapper->setAdapter($adapter); }