Composer - generate namespaces without installing/updating
You can easily ask composer to regenerate vendor namespaces without having to install or update the vendors.
php composer.phar dump-autoload
Check the results by looking in vendor/composer/autoload_namespaces.php. This is especially useful if you're developing a library or bundle that another project uses with composer to install it's dependencies.
Written by Steffan Harries
Related protips
1 Response
Another benefit of that command is to generate a static class map which dramatically improves autoloading performance. It's something any composer based application could benefit from in a production environment.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#