symfony - InvalidConfigurationException: The child node "key" at path "security.firewalls.main.remember_me" must be configured -


i tried update vendor bundles in symfony2 using php composer.phar update, when did received error after line:

updating "app/config/parameters.yml" file

the error is:

[symfony\component\config\definition\exception\invalidconfigurationexception]            child node "key" @ path "security.firewalls.main.remember_me" must configured.   script sensio\bundle\distributionbundle\composer\scripthandler::clearcache handling post-update-cmd event terminated exception  [runtimeexception]                                                          error occurred when executing "'cache:clear --no-warmup'" command.  

my security.yml file has following in firewall section:

firewalls:     main:         pattern: ^/         provider: fos_userbundle         form_login:             csrf_provider: form.csrf_provider             always_use_default_target_path: false             default_target_path: webplio_site_dashboard_index             #success_handler: webplio_site.login_success_handler             check_path: /login_check             login_path: /login         logout: true         remember_me: true         anonymous: true         remember_me:             key: "%secret%"             lifetime: 31536000 # 365 days in seconds             path: /             domain: ~ # defaults current domain $_server 

where secret defined in parameters.yml file

my question else need in order configure child node "key" @ path "security.firewalls.main.remember_me"?

you need change from

remember_me:     key: "%secret%" 

to

remember_me:     secret: "%secret%" 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -