argument('run') || config('sandbox.run') !== $this->argument('run')) { $this->error('Nur innerhalb eines vom Prozess-Tester gestarteten Laufs.'); return self::FAILURE; } $directory = (string) config('sandbox.directory'); try { $report = $driver->run((array) json_decode((string) file_get_contents($directory.'/input.json'), true)); } catch (Throwable $exception) { $report = ['aborted' => 'Lauf abgebrochen: '.class_basename($exception).': '.$exception->getMessage(), 'timeline' => [], 'violations' => EffectLedger::violations()]; } file_put_contents($directory.'/report.json', json_encode($report, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); return self::SUCCESS; } }