. */ namespace FireflyIII\Console\Commands; use Illuminate\Console\Command; /** * Class SetLatestVersion */ class SetLatestVersion extends Command { /** * The console command description. * * @var string */ protected $description = 'Set latest version in DB.'; /** * The name and signature of the console command. * * @var string */ protected $signature = 'firefly-iii:set-latest-version {--james-is-cool}'; /** * Execute the console command. * * @return int */ public function handle(): int { if (!$this->option('james-is-cool')) { $this->error('Am too!'); return 0; } app('fireflyconfig')->set('db_version', config('firefly.db_version')); app('fireflyconfig')->set('ff3_version', config('firefly.version')); $this->line('Updated version.'); //Telemetry::string('db_version', config('firefly.db_version')); //Telemetry::string('ff3_version', config('firefly.version')); return 0; } }