/** * {@inheritDoc} */ public function checksumTemporaryFileByName($name) { try { $hash = $this->temporaryFilesystem->checksum($name); } catch (FileNotFound $e) { $hash = null; } return $hash; }
/** * @param Filesystem $localFilesyste * @param Filesystem $remoteFilesyste * * @throws \RuntimeException */ private function validateFilesytems(Filesystem $localFilesyste, Filesystem $remoteFilesyste) { if (!$remoteFilesyste->has('shopware.php')) { throw new \RuntimeException("shopware.php not found in remote filesystem"); } if (!$localFilesyste->has('shopware.php')) { throw new \RuntimeException("shopware.php not found in local filesystem"); } if ($localFilesyste->checksum('shopware.php') != $remoteFilesyste->checksum('shopware.php')) { throw new \RuntimeException("Filesytems does not seem to match"); } }