setDescription('clear avatar cache') ->setName('user:clear-avatar-cache'); } protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('Clearing avatar cache has started'); $this->avatarManager->clearCachedAvatars(); $output->writeln('Cleared avatar cache successfully'); return 0; } }