extends |
WorkUnitInterface |
|---|
A step of ui5:sync: a unit of work that mirrors part of what the code declares into the database. Each worker runs
in a transaction of its own, in the order of the {@see SyncWorkerCollectorInterface}; the first that rolls back or
throws stops the sync, and what ran before it stays committed — every worker leaves a consistent state, and the next
sync picks up from there.
A worker takes the registry it mirrors by constructor injection (a parameter named $registry), reports through
its outcome's messages and summary, and leaves the dry run to the trigger, which rolls the whole run back. Declare
it in its module like any unit of work, and contribute it through the collector in the module's service provider.
A worker that rewrites catalogues the code declares implements
{@see \LaravelUi5\Sdk\Execution\Contracts\CatalogWorkUnitInterface} as well.
| Methods inherited from LaravelUi5\Sdk\Execution\Contracts\WorkUnitInterface |
|---|
handle() |