I'm upgrading a Symfony project from 3.4 to 4.4.8. The Sensio Distribution Bundle is replaced by Flex, so I updated the scripts section of composer.json this way :
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
When I run a composer update, composer warns that the commands were skipped :
Skipping "cache:clear" (needs symfony/console to run).
Skipping "assets:install public" (needs symfony/console to run).
Looking at composer.lock, symfony/console isn't installed, as symfony/symfony replaces symfony/console. Running a composer req cli doesn't help. I have no problem running symfony console commands (internal and custom) from the shell
I'm running latest stable version of composer (1.10.6). Is there somehting that I am missing ?