feedService = $feedService; } /** * Configure command */ protected function configure() { $this->setName('news:feed:delete') ->setDescription('Remove a feed') ->addArgument('userID', InputArgument::REQUIRED, 'User to remove the feed from') ->addArgument('id', InputArgument::REQUIRED, 'Feed ID', null); } /** * Execute command * * @param InputInterface $input * @param OutputInterface $output * * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { $user = $input->getArgument('userID'); $id = $input->getArgument('id'); $this->feedService->delete($user, $id); return 0; } }