diff --git a/src/Command/RetweetTweetsCommand.php b/src/Command/RetweetTweetsCommand.php new file mode 100644 index 0000000..f0121d4 --- /dev/null +++ b/src/Command/RetweetTweetsCommand.php @@ -0,0 +1,38 @@ +tweetFetcher = $tweetFetcher; + } + protected function configure() + { + $this + ->setDescription('Add a short description for your command') + ; + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $this->tweetFetcher->getTweets()->each(function (array $tweet) { + $this->retweeter->retweet(); + }); + } +}