original_string: public function regenerateUrls()
      {
          $router = Router::getInstance();
          try {
              $router->hydrateRouting();
              $router->simpatize();
              Security::getInstance()->setFlash("callback_message", t("Rutas generadas correctamente"));
              Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true));
          } catch (\Exception $e) {
              Logger::log($e->getMessage(), LOG_ERR);
              Security::getInstance()->setFlash("callback_message", t("Algo no ha salido bien, revisa los logs"));
              Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true));
          }
          return $this->redirect('admin-routes');
      }
code: public function regenerateUrls()
      {
          $router = Router::getInstance();
          try {
              $router->hydrateRouting();
              $router->simpatize();
              Security::getInstance()->setFlash("callback_message", t("Rutas generadas correctamente"));
              Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true));
          } catch (\Exception $e) {
              Logger::log($e->getMessage(), LOG_ERR);
              Security::getInstance()->setFlash("callback_message", t("Algo no ha salido bien, revisa los logs"));
              Security::getInstance()->setFlash("callback_route", $this->getRoute("admin-routes", true));
          }
          return $this->redirect('admin-routes');
      }
code_tokens: public function regenerateUrls ( ) { $ router = Router :: getInstance ( ) ; try { $ router -> hydrateRouting ( ) ; $ router -> simpatize ( ) ; Security :: getInstance ( ) -> setFlash ( "callback_message" , t ( "Rutas generadas correctamente" ) ) ; Security :: getInstance ( ) -> setFlash ( "callback_route" , $ this -> getRoute ( "admin-routes" , true ) ) ; } catch ( \ Exception $ e ) { Logger :: log ( $ e -> getMessage ( ) , LOG_ERR ) ; Security :: getInstance ( ) -> setFlash ( "callback_message" , t ( "Algo no ha salido bien, revisa los logs" ) ) ; Security :: getInstance ( ) -> setFlash ( "callback_route" , $ this -> getRoute ( "admin-routes" , true ) ) ; } return $ this -> redirect ( 'admin-routes' ) ; }
docstring: Service to regenerate routes
  @GET
  @route /admin/routes/gen
  @label Regenerar rutas
  @visible false
  @return string HTML
docstring_tokens: Service to regenerate routes