Search code examples
symfony1symfony-1.4sfguard

Symfony sfGuardPlugin: disable default routes


I'm using the sfGuardPlugin in symfony 1.4 and I'm wondering how to get rid of its "default" routes. I mean by that the "guard/users", "guard/permissions" and "guard/groups" routes.

Indeed I have designed my own backend without admin generator, and I've recreated these three pages with customs urls. So how can I disable the access to the default sfGuard pages ?


Solution

  • To desactivate these 3 modules : you just have to remove the sfGuardGroup, sfGuardUser, sfGuardPermission from the settings.yml for backend application.

    all:
      .settings:
        enabled_modules: [default, sfGuardAuth, sfGuardGroup, sfGuardUser, sfGuardPermission]
    

    In order to keep only the authentification module

    all:
      .settings:
        enabled_modules: [default, sfGuardAuth]
    

    However I have no idea what default is.