Skip to content
docsv0.1.0

ProviderImplementsValidator

Autoloads each plugin manifest's declared providers and asserts they are real: - `capabilities.provides[]` (typed records): the `interface` MUST autoload, the `service` MUST autoload, and the service MUST implement/extend the interface; - `contracts.provides[]` (legacy bare FQCNs): the declared interface MUST autoload. Requires the host's Composer autoloader to already be active (it reflects real, loaded types), so an unresolved FQCN surfaces as a violation rather than a fatal. Ported 1:1 from `scripts/library/validate-provider-implements.php` (B5 / T013).

ProviderImplementsValidator::validate()

public function validate(array $manifestFiles): Milpa\DevTools\Validators\ProviderImplementsResult

Autoloads and checks every declared provider across `$manifestFiles`.

Parameters

Parameters of validate()
NameTypeDescription
$manifestFileslist<string>