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