tweetFetcher = $tweetFetcher; } protected function configure() { $this ->setDescription('Add a short description for your command') ; } protected function execute(InputInterface $input, OutputInterface $output) { $io = new SymfonyStyle($input, $output); $io->table( ['Tweet', 'Author', 'Created', 'ID'], $this->tweetFetcher->getTweets()->map(function (array $tweet) { return [ $tweet['text'], $tweet['author'], $tweet['created'], $tweet['id'], ]; })->all() ); } }