Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pimcore 11 set config locations #7

Closed
valentin- opened this issue Dec 12, 2023 · 3 comments
Closed

Pimcore 11 set config locations #7

valentin- opened this issue Dec 12, 2023 · 3 comments

Comments

@valentin-
Copy link

Hi, I've installed Versions 1.1.9 with Pimcore 11.1.3 but I'm not able to save the config using the settings-store.

As explained in the readme.md I've added this line to the .env file but has no effect:
PIMCORE_WRITE_TARGET_SSO: settings-store

I think the content for the yaml file unter Configuration storage (readme) is invalid, trying to set the config as used for other components won't work:

blackbit_single_sign_on:
    config_location:
        single-sign-on:
            write_target:
                type: 'settings-store'
            read_target:
                type: 'settings-store'

Unrecognized option "single_sign_on" under "blackbit_single_sign_on.config_location". Did you mean "single-sign-on"?
Probably a typo with -/_ in the config reader?

Or did I miss something?

Thanks,
Valentin

@BlackbitDevs
Copy link
Collaborator

Hi @valentin-,

what does bin/console config:dump-reference blackbit_single_sign_on provide you?

Should be something like

blackbit_single_sign_on:
  config_location:
        single-sign-on:
            write_target:
                type:                 symfony-config # One of "symfony-config"; "settings-store"; "disabled"
                options:

                    # Default:
                    directory:           /var/www/html/var/config/single-sign-on

@valentin-
Copy link
Author

Hi @BlackbitDevs, yes I'm getting the same output and it's already defined like that. But getting the error.

blackbit_single_sign_on:
    config_location:
        single-sign-on:
            write_target:
                type: settings-store

image

@BlackbitDevs
Copy link
Collaborator

Is fixed in 1.1.13.

Please change config to

blackbit_single_sign_on:
  config_location:
    write_target:
      type: 'settings-store'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants