PartKeepr\UploadedFileBundle\Services\UploadedFileService::replace PHP Method

replace() public method

Replaces the current file with a new file.
public replace ( UploadedFile $file, File $filesystemFile )
$file PartKeepr\UploadedFileBundle\Entity\UploadedFile The target file
$filesystemFile Symfony\Component\HttpFoundation\File\File The source file
    public function replace(UploadedFile $file, File $filesystemFile)
    {
        $this->replaceFromFilesystem($file, $filesystemFile);
    }