Interface LaravelUi5\Sdk\Sync\Contracts\SyncWorkerCollectorInterface

extends IteratorAggregate<int, class-string<SyncWorkerInterface>>

The order of the sync workers — a sequence of class strings, nothing else; ui5:sync builds each through the container and runs it. A module adds its workers in its service provider:

$this->app->afterResolving(SyncWorkerCollectorInterface::class, function (SyncWorkerCollectorInterface $workers) {
    $workers->after(RolesWorker::class, DunningLevelsWorker::class);
});

One worker is pinned first, one last; everything else sits between them. A contradiction — a second first() or last(), a worker added twice, a reference to an unknown worker, a place around a pinned one — fails at once with Core's {@see \LaravelUi5\Core\Exceptions\FixedPositionViolationException}.

  • LaravelUi5\Sdk\Sync\Contracts\SyncWorkerCollectorInterface extends IteratorAggregate<int, class-string<SyncWorkerInterface>>
    • LaravelUi5\Sdk\Sync\SyncWorkerCollector implements SyncWorkerCollectorInterface
Methods
Methods inherited from IteratorAggregate
getIterator()