Skip to content
docsv0.8.0

PluginDependencyException

Thrown when a plugin declares a dependency (another plugin, a Composer package, etc.) that is not available in the current environment. Deliberately open (non-final): `milpa/runtime`'s `ArchitectureBlockedException` subclasses it to carry the resolver's full `ResolutionReport` while every existing `catch (PluginDependencyException)` keeps working unchanged.

PluginDependencyException::unmet()

public static function unmet(string $plugin, string $dependency): self

Builds the exception for a plugin dependency that could not be satisfied.

Parameters

Parameters of unmet()
NameTypeDescription
$pluginstringName of the plugin declaring the dependency
$dependencystringName of the unmet dependency