top of page
Home: Welcome
Home: Blog2
Search

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.

 
 
 

Recent Posts

See All

Comments


Subscribe Form

©2020 by qdras. Proudly created with Wix.com

bottom of page