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
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$failed | int | How many files did not download. | |
$src_url | string | The bundle's src_url. | |
$src_reachable | bool | Whether that URL passes the check the fetch itself applies. | |
$info | array | The bundle's info.json, as an array. |
Returns
string— Sentence to show the operator.
Since: %ver%
Source: src/Media/DownloadFailure.php:31