php bin/magento setup:di:compile
You might need to delete var/di (including the folder) in order to go through compilation.
rm -rf var/di