Skip to main content

GravityKit\GravityMigrate\Media\DownloadFailure

Why a bundle's entry files did not download, and what would actually help.

Since: %ver%

Source: src/Media/DownloadFailure.php:12

Details

  • Kind: class
  • Namespace: GravityKit\GravityMigrate\Media

Methods

MethodDescription
explain()The reason to report for files that did not download.

Method Reference

explain()

public static function explain( int $failed, string $src_url, bool $src_reachable, array $info ): string

The reason to report for files that did not download.

The remedy differs by cause, and naming the wrong one sends the operator after a problem they do not have. Files the export deliberately left behind are fetched from a source that has to still be online and still holding them, which is a different failure from a source this site cannot reach at all.

Parameters

NameTypeDefaultDescription
$failedintHow many files did not download.
$src_urlstringThe bundle's src_url.
$src_reachableboolWhether that URL passes the check the fetch itself applies.
$infoarrayThe bundle's info.json, as an array.

Returns

  • string — Sentence to show the operator.

Since: %ver%

Source: src/Media/DownloadFailure.php:31