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

Renames a file and commit the changes immediately
public renameFile ( string $fromPath, string $toPath, string | null $commitMsg = null, boolean $force = false, string | null $author = null ) : string
$fromPath string The source path
$toPath string The destination path
$commitMsg string | null The commit message used when committing the changes
$force boolean True to continue even though VCS reports a possible conflict
$author string | null The author
Результат string The current commit hash
 /**
  * {@inheritDoc}
  */
 public function rename($sourceKey, $targetKey)
 {
     $this->repository->renameFile($sourceKey, $targetKey);
     return true;
 }