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');
    }
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');
    }
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' ) ; }
Service to regenerate routes
@GET
@route /admin/routes/gen
@label Regenerar rutas
@visible false
@return string HTML
Service to regenerate routes