avatarRepository = $avatarRepository; } protected function configure() { $this->setName('bbb:clear-avatar-cache'); $this->setDescription('Clear all avatars in cache'); } protected function execute(InputInterface $input, OutputInterface $output) { $stats = $this->avatarRepository->clearAllRooms(); $output->writeln("Removed " . $stats["files"] . " avatars in " . $stats["rooms"] . " rooms"); return 0; } }