option('stabile'); if (!$code) { $this->error('Serve --stabile=CODICE'); return 1; } $path = $this->option('path'); $dry = (bool)$this->option('dry'); $amm = Amministratore::first(); if (!$amm) { $this->error('Nessun amministratore presente.'); return 1; } $svc = new EssentialImportService(); $res = $svc->syncStabile($amm, $code, ['path' => $path, 'dry' => $dry, 'with_banche' => $this->option('include-banche'), 'with_gestioni' => $this->option('include-gestioni')]); $this->info('Sync result: ' . json_encode($res)); return 0; } }