src/V4/Controller/Debug/ResetOpCacheAction.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\V4\Controller\Debug;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. /**
  7.  * @Route("/reset-opcache", methods={"GET"})
  8.  */
  9. class ResetOpCacheAction
  10. {
  11.     public function __invoke(): Response
  12.     {
  13.         opcache_reset();
  14.         return new Response('OK');
  15.     }
  16. }