I've just installed Symfony 4 project and found this section in composer.json:
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
...
I've found that section auto-scripts is handled somehow differently by the Composer: key is a command to bin/console and value is a command "type" (In this case it's Symfony's). As it is not documented on Composer website, I assume it's not legal definition, but it works, and my question is how the Composer knows how to execute such commands? How Composer knows what is symfony-cmd?