TQ\Vcs\Repository\RepositoryInterface::resolveLocalPath PHP Method

resolveLocalPath() public method

Resolves an absolute path into a path relative to the repository path
public resolveLocalPath ( string | array $path ) : string
$path string | array A file system path (or an array of paths)
return string
    public function resolveLocalPath($path);

Usage Example

 /**
  * Returns the relative path to the resource based on the repository path
  *
  * @return  string
  */
 public function getLocalPath()
 {
     if (!$this->localPath) {
         $this->localPath = $this->repository->resolveLocalPath($this->fullPath);
     }
     return $this->localPath;
 }
All Usage Examples Of TQ\Vcs\Repository\RepositoryInterface::resolveLocalPath