I incorrectly issued composer dump-autoload -o
on my PHP project (thinking it did something else!). Is there a way to undo this?
I found an auto-generated file in vendor/composer/autoload_real.php
- will just deleting this file do the trick?
Yes, manually removing all files of the autoloader in the vendor/composer/
folder should work.
So, all vendor/composer/autoload_*.php
files and the include_paths.php
.
By using dump-autoload -o
Composer creates an optimized autoload_classmap.php
file.
If in doubt, drop the whole vendor/composer
folder and do a composer update
afterwards. Composer will then auto-generate the files again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With