locationMatcher = $locationMatcher; } /** * @param $stringIdentifier location: * @return string Location id * @throws \Exception */ public function getReferenceValue($stringIdentifier) { $ref = $this->getReferenceIdentifierByPrefix($stringIdentifier); switch ($ref['prefix']) { // deprecated tag: 'location:' case 'location:': return $this->locationMatcher->MatchOne(array(LocationMatcher::MATCH_LOCATION_REMOTE_ID => $ref['identifier']))->id; //case 'location_remote_id:': // return $this->repository->getLocationService()->loadLocationByRemoteId($ref['identifier'])->id; } } }