Your project controllers should only contains actions as public methods

More information: https://insight.symfony.com/what-we-analyse/symfony.controller.non_action_public_method_in_controller_class

  1. private EntityManagerInterface $em,
  2. ) {
  3. $this->config = $config;
  4. }
  5. #[Route('/refresh-cache')]

    Non-action public method found in controller class

    Time to fix: about 1 hour
    Read doc Open Issue Permalink
    Last edited by Nathan
  6. public function refreshCache(): Response
  7. {
  8. $this->denyAccessUnlessGranted('ROLE_CONFIG_REFRESH_CACHE');
  9. $configs = $this->em->getRepository(ConfigInterface::class)
  • 2le

    Ignored on Thu, 01 Aug 2024 14:15:31 GMT