Composer dump-autoload doesn't work successfully unless the optimize flag (-o) is used.
I have a composer.json with the following:
"autoload": {
"psr-4": {
"ClassSrcFolder_TopLevelNamespace\\": "app/ClassSrcFolder/"
}
}
Running "composer dump-autoload" w/o the -o flag I get a "class not found" error for a sub-folder to the "app/ClassSrcFolder/"
Is there a reason for this behavior?