Last active
September 13, 2024 13:31
-
-
Save dbjpanda/da1db4d9ab12f394aee655d2ff61edf3 to your computer and use it in GitHub Desktop.
What is composer dump-autoload?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer dump-autoload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
composer dump-autoload
is an optional step. Often executed for production ready projects. It creates an array of Namespaces and their respective location in autolaod_classmap.php file. So that it can quickly find the file inside the array and load it. Without dump-autoload, composer uses a complex logic to find the respective classes using filesystem scan. That is comparatively slow.