Class LaravelUi5\Sdk\Commands\AbstractAutomationCommand

abstract
extends AbstractAuditedCommand
implements AutomationCommandInterface

The base of an automation command — one nobody runs by hand: a deployment step, a scheduled run. It acts as the automation actor and never asks; only an automation command may run a catalogue unit of work. Declare it with AbstractCommand (a commands segment, no #[Act] — there is no person to check it against) and implement handleCommand(...), which takes the run's SdkContext:

final class ImportCodelists extends AbstractAutomationCommand
{
    protected $signature = 'codelists:import';

public function handleCommand(WorkUnitRunnerInterface $runner, SdkContext $sdk, ImportUnit $import): int
    {
        $runner->run($import, new BusinessContext(), $sdk);
        return self::SUCCESS;
    }
}
  • Illuminate\Console\Command
    • LaravelUi5\Sdk\Commands\SdkCommand
      • LaravelUi5\Sdk\Commands\AbstractAuditedCommand implements AuditedCommandInterface
        • LaravelUi5\Sdk\Commands\AbstractAutomationCommand implements AutomationCommandInterface
          • LaravelUi5\Sdk\Commands\Sync uses ReportsSyncResult
          • LaravelUi5\Sdk\Commands\Prune
          • LaravelUi5\Sdk\Commands\Ready uses ReportsSyncResult
          • LaravelUi5\Sdk\Commands\TenantCommand
Methods inherited from LaravelUi5\Sdk\Commands\AbstractAuditedCommand
__construct(), handle()