cache = $cache; } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $io->title('Очистка кеша модуля MegaPay'); try { $this->cache->clear(); $io->success('Кеш успешно очищен!'); return Command::SUCCESS; } catch (\Exception $e) { $io->error('Ошибка при очистке кеша: ' . $e->getMessage()); return Command::FAILURE; } } }