Airship\Engine\Continuum\AutoUpdater::useLocalUpdateFile PHP 메소드

useLocalUpdateFile() 공개 메소드

For CLI usage: Bypass the download process, use a local file instead.
public useLocalUpdateFile ( string $path, string $version = '' ) : self
$path string
$version string
리턴 self
    public function useLocalUpdateFile(string $path, string $version = '') : self
    {
        if (\file_exists($path)) {
            throw new FileNotFound();
        }
        $hash = File::checksum($path);
        $this->localUpdateFile = new UpdateFile(['path' => $path, 'version' => $version, 'hash' => $hash, 'size' => \filesize($path)]);
        return $this;
    }