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'
);
} } /**
* @param int $code
* @param array $data
*/
private function toJson($code,
$data) { $this->response->
header('Content-Type', 'application/json'
);