dowaw80220 2016-11-29 14:13
浏览 138
已采纳

Symfony 2缓存清除错误

My Symfony 2 website has recently been giving me problems when I try to clear the cache. I type the following command in the terminal:

php app/console cache:clear

And get the following error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
No authentication listener registered for firewall "dev".

Any help is appreciated!

  • 写回答

2条回答 默认 最新

  • duanchendu69495 2016-11-29 14:45
    关注

    Try disabling the sicurity for the specified firewall, so try this line:

    dev:
        pattern:  ^/(css|images|js)/
        security: false
    

    Hope this help

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?