StubsPublishHandler
`stubs:publish` — copy the package's stubs into the app's `stubs/`, where `make` reads them first. A copy already in the app is KEPT unless `force` says otherwise: the whole point of publishing is to edit the copy, and a second publish must not undo the edit. `only` narrows the copy to named stubs; a name the package does not ship is refused, not silently skipped.
StubsPublishHandler::__construct()
public function __construct(Milpa\DevTools\Support\RootResolver $roots = new RootResolver(), Milpa\DevTools\Make\StubLocator $locator = new StubLocator()):Parameters
| Name | Type | Description |
|---|---|---|
| $roots | Milpa\DevTools\Support\RootResolver | |
| $locator | Milpa\DevTools\Make\StubLocator |
StubsPublishHandler::handle()
public function handle(array $input): arrayCopies the named (or every) stub into `<root>/stubs/`, keeping copies already there unless `force`.
Parameters
| Name | Type | Description |
|---|---|---|
| $input | array<string, mixed> |