addArgument('tenant', InputArgument::REQUIRED, 'Tenant identifier') ->addArgument('name', InputArgument::REQUIRED, 'Logical store name'); } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $tenant = (string) $input->getArgument('tenant'); $name = (string) $input->getArgument('name'); try { if (!$this->stores->remove($tenant, $name)) { $io->warning("Logical store '{$name}' was not configured for tenant '{$tenant}'."); return Command::SUCCESS; } $this->logger->info('Tenant logical store removed via console', compact('tenant', 'name')); $io->success("Logical store '{$name}' removed from tenant '{$tenant}'."); return Command::SUCCESS; } catch (\Throwable $error) { $this->logger->error('Tenant logical store removal failed', [ 'tenant' => $tenant, 'name' => $name, 'error' => $error->getMessage(), ]); $io->error('Failed to remove tenant store: ' . $error->getMessage()); return Command::FAILURE; } } }