Reputation: 2287
I am using Symfony 2.8 using Symfony 3 directory structure. After recent composer install it is complaining that
An error occurred when executing the "'cache:clear --no-warmup'" command: Could not open input file: app/console
I looked at the change log and could not find anything regarding this change is there anyway to fix this issue.
Upvotes: 2
Views: 1478
Reputation: 6806
Create var
directory.
Explanation:
vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:462
protected static function useNewDirectoryStructure(array $options)
{
return isset($options['symfony-var-dir']) && is_dir($options['symfony-var-dir']);
}
So you need both to have symfony-var-dir
in composer.json
's extra
and have this directory existing.
Upvotes: 0
Reputation: 2056
Do you have a console
folder inside the app
one ?
btw try to do php bin/console cache:clear --no-warmup
bin/console
is the new directory in Symfony 3. It's maybe the same issue.
Upvotes: 1