Ejemplo n.º 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 Resource $resource The resource.
  *
  * @return string The server path.
  */
 public function getServerPathForResource(Resource $resource)
 {
     $relPath = Path::makeRelative($resource->getRepositoryPath(), $this->basePath);
     return '/' . trim($this->mapping->getServerPath() . '/' . $relPath, '/');
 }