Skip to content
docsv0.44.3

SourcePageHandler

Complete JSON pages of UTF-8 source; the cursor binds a byte position to path and content.

SourcePageHandler::__construct()

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

Parameters

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

SourcePageHandler::handle()

public function handle(array $input, ?Milpa\Command\InvocationContext $context = null, ?Milpa\ToolRuntime\Contracts\ToolContext $authority = null): array

The caller supplies a budget outside a model transport; an explicit bound only tightens it. Each invocation rereads the complete file to reject a cursor for changed content.

Parameters

Parameters of handle()
NameTypeDescription
$inputarray<string, mixed>
$context?Milpa\Command\InvocationContext
$authority?Milpa\ToolRuntime\Contracts\ToolContext