diff --git a/src/Command/RetweetTweetsCommand.php b/src/Command/RetweetTweetsCommand.php index 64aff45..247a57b 100644 --- a/src/Command/RetweetTweetsCommand.php +++ b/src/Command/RetweetTweetsCommand.php @@ -2,15 +2,14 @@ namespace App\Command; -use App\Model\Tweet; +use App\Entity\Tweet; +use App\Repository\TweetRepository; use App\Service\Retweeter; use App\Service\TweetFetcher; use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; class RetweetTweetsCommand extends Command { diff --git a/src/Repository/TweetRepository.php b/src/Repository/TweetRepository.php index 5f15114..1314261 100644 --- a/src/Repository/TweetRepository.php +++ b/src/Repository/TweetRepository.php @@ -5,6 +5,7 @@ namespace App\Repository; use App\Entity\Tweet; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; +use Tightenco\Collect\Support\Collection; /** * @method Tweet|null find($id, $lockMode = null, $lockVersion = null) diff --git a/src/Service/Retweeter.php b/src/Service/Retweeter.php index ed07679..1c77603 100644 --- a/src/Service/Retweeter.php +++ b/src/Service/Retweeter.php @@ -2,7 +2,7 @@ namespace App\Service; -use App\Model\Tweet; +use App\Entity\Tweet; class Retweeter {