It means that not all classes used in the application are added to autoloader's class map which is just a big array - 'className' => 'path/To/class'
located in vendor/composer/autoload_classmap.php
.
That's how to fix it:
First you need to find out which classes are missing. You can add this: var_dump($class);
right after
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
in vendor/composer/ClassLoader.php, and next time when you will run your app, you will see which classes are not in the class map. Then you can edit your composer.json and add path to those classes like this:
"autoload": {
"classmap": [
"path/to/myClasses/",
]
}
when this is done you can run composer dump-autoload -o
. It should fix the problem.