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}.
| Methods | ||
|---|---|---|
public
|
first(class-string<SyncWorkerInterface> $worker): self
|
# |
public
|
then(class-string<SyncWorkerInterface> $worker): self
|
# |
public
|
last(class-string<SyncWorkerInterface> $worker): self
|
# |
public
|
before(class-string<SyncWorkerInterface> $existing, class-string<SyncWorkerInterface> $worker): self
|
# |
public
|
after(class-string<SyncWorkerInterface> $existing, class-string<SyncWorkerInterface> $worker): self
|
# |
| Methods inherited from IteratorAggregate |
|---|
getIterator() |