Mouna Mouna - 4 days ago 7
PHP Question

Symfony 2 cache clearing error

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!

Answer

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

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

Hope this help

Comments