Open Sogl opened 2 years ago
After hours of debugging I found that if I write in config\system.yaml
:
accounts:
type: flex
storage: SOMETHING
avatar: gravatar
My custom class works fine and also all other storage
options from user-accounts.yaml
.
However, each time of Configuration saving (in Admin panel) storage: SOMETHING
will be overwritten. Need to add +1 value for custom or something else:
I want to store users in
accounts\username
folder.In my
config\system.yaml
:I copied
system/blueprints/flex/user-accounts.yaml
touser/blueprints/flex/user-accounts.yaml
. Data configuration part:All should be fine but users are saved to hashed folders:
As you can see with Xdebug,
pattern
andstorage_key
are wrong (not from ourstorage
configuration):Ok. I can extend
UserObject
to my custom to overridesave()
func:Much better but still triple nesting:
BUT when I try to override
class: 'Grav\Plugin\SoglFlex\Flex\Types\Users\UserFolderStorage'
it just not fire.It looks as if the entire
storage
section is not being read, but the default values are being used.@mahagr How to fix?