小编use*_*853的帖子

InvalidConfigurationException:必须配置路径“security.firewalls.main.remember_me”处的子节点“key”

我尝试使用 php composer.phar update 在 symfony2 中更新我的供应商包,但是当我这样做时,我在此行之后收到一个错误:

更新“app/config/parameters.yml”文件

我得到的错误是:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]           
The child node "key" at path "security.firewalls.main.remember_me" must be configured. 

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

[RuntimeException]                                                         
An error occurred when executing the "'cache:clear --no-warmup'" command. 
Run Code Online (Sandbox Code Playgroud)

我的 security.yml 文件在其防火墙部分具有以下内容:

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: / …
Run Code Online (Sandbox Code Playgroud)

symfony

2
推荐指数
1
解决办法
3397
查看次数

标签 统计

symfony ×1