setName('organization-folders:list') ->setDescription('List all organization folders'); parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output): int { try { $organizationFolders = $this->organizationFolderService->findAll(); $this->writeTableInOutputFormat($input, $output, $this->formatTableSerializables($organizationFolders)); return 0; } catch (Exception $e) { $output->writeln("Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}"); return 1; } } }