setHelp('Este comando executa a função opcache_reset() para invalidar todo o cache de bytecode.'); } protected function execute(InputInterface $input, OutputInterface $output): int { if (!function_exists('opcache_reset')) { $output->writeln('OPcache não está habilitado ou a função opcache_reset() não está disponível.'); return Command::FAILURE; } if (opcache_reset()) { $output->writeln('OPcache limpo com sucesso!'); return Command::SUCCESS; } $output->writeln('Falha ao limpar o OPcache.'); return Command::FAILURE; } }