/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) : int { $rule = new \DateTime('-6 months'); $amount = $this->userRepository->deleteAncientAttemptData($rule); $output->writeln(sprintf('<fg=green;bg=black>Successfully purged <comment>%d</comment> ancient auth models.</fg=green;bg=black>', $amount)); return 0; }