getRepositoryPath() публичный Метод

The repository path is the path that the resource is mapped to once attached to a repository. The result of this method is different from {@link getPath()} for resource references. PuliResource references return the path of the referenced resource here, while {@link getPath()} returns the path of the reference itself.
public getRepositoryPath ( ) : string | null
Результат string | null The repository path of the resource. If the resource has no repository path, `null` is returned.
Пример #1
0
 /**
  * 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, '/');
 }