setName('organization-folders:resource-members:delete') ->setDescription('Delete a member of a resource') ->addArgument('id', InputArgument::REQUIRED, 'Id of the resource member'); } protected function execute(InputInterface $input, OutputInterface $output): int { $id = (int)$input->getArgument('id'); try { $this->resourceMemberService->delete($id); $output->writeln("done"); return 0; } catch (Exception $e) { $output->writeln("Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}"); return 1; } } }