Fix composer autload dumping for commands
Merge pull request #6603 from xsbeats/bugfix/dump-autoload

[5.0] Fix Composer Autoload Dumping For Commands