diff --git a/src/Command/SeedsCommand.php b/src/Command/SeedsCommand.php index c61c00ef..0a6b0fce 100644 --- a/src/Command/SeedsCommand.php +++ b/src/Command/SeedsCommand.php @@ -15,6 +15,7 @@ use App\Repository\UserRepository; use App\Security\Encryptor; use App\Utils\Random; +use App\Utils\Time; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; @@ -194,6 +195,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => false, 'ticket' => $ticketEmails, + 'createdAt' => Time::ago(1, 'day'), 'createdBy' => $userCharlie, 'via' => 'webapp', ]); @@ -204,6 +206,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => true, 'ticket' => $ticketEmails, + 'createdAt' => Time::ago(10, 'hours'), 'createdBy' => $userAlix, 'via' => 'webapp', ]); @@ -214,6 +217,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => false, 'ticket' => $ticketEmails, + 'createdAt' => Time::ago(9, 'hours'), 'createdBy' => $userAlix, 'via' => 'webapp', ]); @@ -238,6 +242,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => false, 'ticket' => $ticketUpdate, + 'createdAt' => Time::ago(5, 'days'), 'createdBy' => $userCharlie, 'via' => 'webapp', ]); @@ -248,6 +253,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => false, 'ticket' => $ticketUpdate, + 'createdAt' => Time::now(), 'createdBy' => $userAlix, 'via' => 'webapp', ]); @@ -274,6 +280,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int HTML, 'isConfidential' => false, 'ticket' => $ticketFilter, + 'createdAt' => Time::ago(42, 'days'), 'createdBy' => $userBenedict, 'via' => 'webapp', ]);