Symfony: configuring sfDoctrineGuardPlugin modules

I am trying to customize the forms of the sfGuardUser module. After installing sfGuardDoctrinePlugin, I followed the symfony cascading configuration agreement and created the following structure:

apps/backend/modules/sfGuardUser
apps/backend/modules/sfGuardUser/config
apps/backend/modules/sfGuardUser/config/generator.yml

In the file, generator.ymlI tried to override the default plugin settings, as suggested in this related question and this official blog post :

generator:
  class: sfDoctrineGenerator
  param:
    config:
      fields:
        first_name:
          label: Name
        last_name:
          label: surname
        email_address:
          label: Email
        updated_at:
          label: Last update
          date_format: f
      list:
        title: People
        display: [= username, name, email_address, last_login]
        sort: [username, asc]
      filter:
        display: [username, first_name, last_name, email_address]
      edit:
        title: Edit "%% name %%"
      new:
        title: Add a new user
      form:
        display:
          "User": [first_name, last_name, email_address, username, password, password_again]
          "Permissions and groups": [is_active, is_super_admin, groups_list]

However, the form still reflects the default settings. For example, it still displays permissions_list.

In addition, if you try to disable widgets by overriding sfGuardUserAdminForm, you will realize that it does not work either.

How can I avoid this and force a real override? Did I miss something?

Thank!

1 , , , :

"User":  [first_name, last_name, email_address, username, password, password_again]
"Permissions and groups":  false
"Status and groups":  [is_active, is_super_admin, groups_list]

2 , , , . , ​​, .

+3
1

, , plugins 'generator.yml. - plugin generator.yml, .

( ) plugin generator.yml /. : http://oldforum.symfony-project.org/index.php/m/43279/

+2

All Articles