I have been using composer to install all Drupal modules, when I realized that they had not been installing to modules/contrib. So, I added this into my composer file:
Then, I moved all modules to /contrib under the modules directory, and rebuilt my cache with
drush cr. No errors.
Now I cannot reload the site, I am getting fatal errors about missing modules at their old paths.
How do I clear the autoloader so it gets updated to look in modules/contrib instead of just modules for class files?
I tried removing the composer.lock file and running
composer update - no dice.
Looks like I did everything right, I just needed to reboot the VM to clear the APC cache.
Is there a way I could do that from command line instead of reboot the server?