Answer the question
In order to leave comments, you need to log in
Why does Composer crash on Symfony cache flush?
Good evening, happy holidays everyone :)
There is Symfony 2.3 with a bunch of other packages. All of this is managed by Composer.
It worked for itself and did not know problems.
Then I manually ran the dump with the "-o" switch
composer dumpautoload -o
composer dumpautoload -o
app/console cache:clear
.....
Answer the question
In order to leave comments, you need to log in
when you ask composer to generate an optimized autoloader for you, it will generate a hashmap of all classes so that you don’t have to check if the file exists or not, search through directories, etc. So in theory when you do a composer update this hashmap is not updated. That's why it works with the -o flag. In theory, calling the dumpautoload command again without the `o` option should solve the problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question