0

When I do app/console cache:clear --env=prod --no-warmup in the console i'm getting the next error:

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]  
  The service definition "security.access.decision_manager" does not exist. 

I'm using Symfony2 v2.2.8

I don't use the security.access.decision_manager in my own bundles..

I've searched for security.access.decision_manager in my project but could not find anything from my bundles...

I there also a way to get a backtrace in the console?

The strange thing is, if I do app/console cache:clear --env=dev --no-warmup -v It works fine! And if I do app/console cache:clear --env=prod --no-warmup -v I get that error again..

2 Answers 2

1

After debugging hours I've fount the problem!

I was missing the security include in the config_prod.yml

imports:
    - { resource: config.yml }
    - { resource: parameters_prod.yml }
    - { resource: security_prod.yml } <-- The missing one
Sign up to request clarification or add additional context in comments.

Comments

0

try next:

rm -rf app/cache/prod/*
rm -rf app/cache/dev/*

3 Comments

@MitchelVerschoof about stacktrace - you can add -v to your command. found at blog.nocontext.net/2013/01/…
Hmm get nothing more with -v app/console cache:clear --env=prod --no-warmup -v [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] The service definition "security.access.decision_manager" does not exist.
I did but didn't help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.