Every thing is in the title : Does composer dump-autoload -o
really need to be run after setup:di:compile
as the official document seem to pretend : http://devdocs.magento.com/guides/v2.2/config-guide/prod/prod_perf-optimize.html
But if composer install --optimize-autoloader
has been run before, the autoload dump is already done, i don't see relationship with setup:di:compile
?
Best Answer
Yes, it should be run after
setup:di:compile
command, because it generates new classes and they will be not be optimized for autoloading