Skip to content
docs

PluginInstallException

Thrown when installing or updating a plugin from a remote source (e.g. GitHub) fails — download failure, manifest error, or an unresolvable release.

PluginInstallException::forSource()

public static function forSource(string $source, string $reason): self

Builds the exception for a plugin that failed to install from a source.

Parameters

Parámetros de forSource()
NombreTipoDescripción
$sourcestringRemote source the plugin was installed from (e.g. "owner/repo", "owner/repo:^2.0", or a GitHub URL)
$reasonstringHuman-readable reason for the failure