SwagUpdate example

$this->connection = $connection;
        $this->pluginExtractor = $pluginExtractor;
        $this->httpClient = $httpClient;
    }

    /** * @return FinishResult|ValidResult */
    public function downloadRange(RangeDownloadRequest $request)
    {
        // Load SwagUpdate so the DownloadStep can be auto-loaded         Shopware()->Plugins()->Backend()->SwagUpdate();

        $version = new Version([
            'uri' => $request->getUri(),
            'size' => $request->getSize(),
            'sha1' => $request->getSha1(),
        ]);

        return (new DownloadStep($version$request->getDestination()))->run($request->getOffset());
    }

    /** * @param string $file * @param string $pluginName * * @throws Exception */
Home | Imprint | This part of the site doesn't use cookies.