public getRepositoryPath ( ) : string | null | ||
return | string | null | The repository path of the resource. If the resource has no repository path, `null` is returned. |
public function getRepositoryPath();
/** * Returns the path where a resource is going to be installed. * * This is a path relative to the document root of the target server. * * @param PuliResource $resource The resource. * * @return string The server path. */ public function getServerPathForResource(PuliResource $resource) { $relPath = Path::makeRelative($resource->getRepositoryPath(), $this->basePath); return '/' . trim($this->mapping->getServerPath() . '/' . $relPath, '/'); }