Generated autoload files containing 0 classes
- qdras
- Jan 30, 2020
- 1 min read
Are you trying to create autoloader with composer and still get message "Generated autoload files containing 0 classes"? This message says "no classes will be added to classmap = it will be not hardcoded to files vendor\composer\autoload_classmap.php and vendor\composer\autoload_static.php". So every time when is autoload.php called, it will try to find the classes and their php files.(every class should have own php file) When you use composer dump-autoload -o (optimized) the paths to the classes will be hardcoded to the autoload_classmap.php and autoload_static.php so loading classes will run faster.
Comments