Skip to content
docsv0.24.0

ArtifactListHandler

Lists class, interface, and enum declarations in the app's plugins without loading their files. The operation returns declaration metadata only. It reads declarations through the shared {@see DeclarationScanner} — tokens, not `require` — so top-level code and static initializers never run merely because an agent asked what exists.

ArtifactListHandler::__construct()

public function __construct(Milpa\DevTools\Support\RootResolver $roots = new RootResolver()):

Parameters

Parameters of __construct()
NameTypeDescription
$rootsMilpa\DevTools\Support\RootResolver

ArtifactListHandler::handle()

public function handle(array $input): array

Returns the artifacts declared by one plugin or by every plugin in the app.

Parameters

Parameters of handle()
NameTypeDescription
$inputarray<string, mixed>